- Create a staking request.
- Sign and broadcast the transaction.
1
Create staking request
Send a POST request to /api/v1/sui/{network}/staking/stake.Example request (for
testnet network):sender— staker account address.amount— amount of tokens to stake in MIST (1 SUI = 10⁹ MIST).gasPrice— price per unit of gas in MIST for processing the Sui transaction.gasBudget— maximum gas limit for the transaction.
unsignedTransaction— serialized unsigned transaction in the hexadecimal format. Sign the transaction and submit it to the blockchain to perform the called action.
2
Sign and send transaction
Use
unsignedTransaction from the previous step to sign and send the signed transaction to the Sui network.Check your staking position and status by sending a GET request to /api/v1/sui/{network}/transaction/stake-list/{address}.Example request (for testnet network):network— Sui network:mainnetortestnet.address— staker account address.
-
validatorAddress— validator address. -
stakerAddress— staker account address. -
stakes— detailed information on each stake:-
stakeId— identifier of the stake, which is required to perform a withdrawal later. -
amount— amount of tokens to stake in MIST (1 SUI = 10⁹ MIST). -
status— staking transaction status:pending— stake has been submitted and is awaiting activation. Activation may take up to 12 hours depending on validator configuration.active— stake is active and earning rewards.unstaked— stake has been withdrawn.
-