- Create a staking request.
- Sign and send the transaction to the network.
1
Create staking request
Send a POST request to /api/v1/aptos/{network}/staking/delegated/add.Example request (for
mainnet network):-
amount— amount of tokens to stake in Octas. The minimum stake amount is 11 APT (1 APT = 10⁸ Octas). -
delegatorAddress— stash account address which keeps tokens. -
gas— optional; computational effort required to execute the transaction, measured in 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 stake in Octas.delegatorAddress— delegator 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.
2
Sign and send transaction
Use
unsignedTransaction to sign and send the signed transaction to the Aptos network. By broadcasting this transaction, you’re adding the tokens to P2P.ORG delegation pool.To check the transaction status, send a GET request to /api/v1/aptos/{network}/transaction/status/{transactionHash}.Example request (for 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.