Skip to main content
Staking on the Sui network using the Staking API consists of the following main steps:
  1. Create a staking request.
  2. Sign and broadcast the transaction.
Get an authentication token to start using Staking API. Request examples are provided using cURL.
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.
Example response:
  • 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: mainnet or testnet.
  • address — staker account address.
Example response:
  • 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.