- Create an unstaking request.
It takes up to 30 days to unlock tokens on Aptos network. During this waiting period, unlocked tokens continue earning rewards.
- Create a withdrawal request.
1
Create unstaking transaction
-
Send a POST request to /api/v1/aptos/{network}/staking/delegated/unlock.
Example request (for
mainnetnetwork):
-
amount— amount of tokens to unlock in Octas. -
delegatorAddress— account address which keeps tokens. -
gas— optional; computational effort required to execute the transaction, measured in units.unitPrice— price per unit of in Octas for processing the Aptos transaction.maxGasLimit— maximum gas limit for the transaction.
amount— amount of tokens to unlock in Octas.delegatorAddress— account address which keeps tokens.unsignedTransaction— unsigned transaction in hexadecimal format. Sign the transaction and submit it to the blockchain to perform the called action.createdAt— timestamp of the transaction in the ISO 8601 format.
- Use
unsignedTransactionto sign and send the signed transaction to the Aptos network.
2
Create withdrawal request
-
After the delegation pool period on Aptos expired, withdraw your tokens by sending a POST request to /api/v1/aptos/{network}/staking/delegated/withdraw.
Example request (for
mainnetnetwork):
-
amount— amount of tokens to withdraw in Octas. -
delegatorAddress— account address which keeps tokens. -
gas— optional; computational effort required to execute the transaction, measured in gas units.unitPrice— price per unit of gas in Octas for processing the Aptos transaction.maxGasLimit— maximum gas limit for the transaction.
amount— amount of tokens to withdraw in Octas.delegatorAddress— account address which keeps tokens.unsignedTransaction— unsigned transaction in hexadecimal format. Sign the transaction and submit it to the blockchain to perform the called action.createdAt— timestamp of the transaction in the ISO 8601 format.
- Use
unsignedTransactionto sign and send the signed transaction to the Aptos network.
mainnet network):transactionHash— hash of the transaction.
-
createdAt— timestamp of the transaction in the ISO 8601 format. -
gas— computational effort required to execute the transaction, measured in gas units.unitPrice— price per unit of gas in Octas for processing the Aptos transaction.maxGasLimit— maximum gas limit for the transaction.used— amount of gas spent for the transaction.
-
senderAddress— transaction sender address. -
sequenceNumber— number of transactions that have been submitted and committed on-chain from the sender account. -
status— transaction status:pending,successorfailed. -
transactionHash— hash of the transaction.