Staking funds with the Blockdaemon staking pool is achieved through the Post Stake Intent endpoint.
This endpoint returns an unsigned transaction that needs to be signed and broadcast to the network by the account responsible for the delegated funds.
Before withdrawing staked tokens, they must undergo deactivation.
The Post Deactivation Intent endpoint returns an unsigned transaction. Once signed and broadcast, it triggers the deactivation process. The process is completed within 2 or 3 NEAR epochs (equivalent to 24-48 hours).
Upon the full deactivation of the stake, an unsigned withdrawal transaction can be generated using the Post Withdrawal Intent endpoint.