- Create an unstaking request.
- Sign and broadcast the transaction to withdraw staked tokens from the pool.
1
Create unstaking request
Depending on the type of your staking pool, send a POST request either to /api/v1/ton/{network}/staking/single-nominator/unstake or to /api/v1/ton/{network}/staking/ton-whales/unstake. A special memo message for withdrawal will be created.Example request (for the single nominator pool in the
testnet network):publicKey— public key of the nominator for the TON network.amount— amount of tokens to unstake in TON.walletVersion— version of the smart contract used by the wallet in the TON blockchain.V4is used by default.
Since only an owner of the single nominator pool can perform the transaction, mind specifying the current wallet version of the active pool owner.Example response:
unsignedTransaction— in the hexadecimal format. Sign the transaction and submit it to the blockchain to create an unstake request.publicKey— public key of the nominator for the TON network.amount— amount of tokens to unstake in TON.
2
Sign and broadcast transaction
Sign and broadcast the
unsignedTransaction to the TON network.