Skip to main content

Endpoints

API Usage

Once you already have access to the Staking API with a validated user and existing apikeys you can start using this service.

API Reference docs

tip

You can check the Staking API Reference here:

Authentication

In order to use staking api related endpoints you need to include your API KEY.

tip

Heads up! To obtain a valid API key required for authentication, please refer to the Authentication > Auth section of the documentation.

Header:

NameDescriptionExample valueRequired
X-API-KEYYour api key value<API_KEY_VALUE>
X-NETWORKBlockchain network identifiermainnet

X-NETWORK header

Use the X-NETWORK header to select the Sui network.

info

If you omit the header the API falls back to the default Sui network configured for your account.


List available networks

Use this helper endpoint to obtain the list of Sui staking networks currently enabled for your API key.

Response payload fields:

FieldDescription
nameInternal blockchain entry name
typeBlockchain type string (always SUI)
chain_idChain identifier
is_defaulttrue when this network is used as fallback

Stake action

Craft an unsigned stake transaction:

Description

This endpoint crafts an unsigned stake transaction ready to be signed.

Request body parameters

SuiStakeActionDto
  • wallet_address (required): Wallet address of the user that will perform the staking action.
  • validator_address (optional): Validator address to stake to. If omitted, defaults to configured validator.
  • amount (required): Amount of SUI to stake (minimum 1 SUI, up to 9 decimals).

Returned

SuiStakeActionResponseDto
  • unsigned_tx_b64: Unsigned transaction bytes encoded as base64.

Unstake action

Craft an unsigned unstake transaction:

Description

This endpoint crafts an unsigned unstake transaction ready to be signed.

Request body parameters

SuiUnstakeActionDto
  • wallet_address (required): Wallet address of the user that will perform the unstaking action.
  • staked_sui_object_id (required): Object ID of the StakedSui object to withdraw.

Returned

SuiStakeActionResponseDto
  • unsigned_tx_b64: Unsigned transaction bytes encoded as base64.

Prepare action

Gathers signatures and unsigned transaction:

Description

Prepare a signed transaction by combining the unsigned transaction bytes and signatures into a single payload.

Request body parameters

SuiPrepareActionDto
  • unsigned_tx_b64: Unsigned transaction bytes in base64.
  • signatures: Array of base64-encoded signatures.

Returned

SuiPrepareActionResponseDto

Broadcast action

Broadcast a signed transaction:

Description

Broadcast a signed Sui transaction.

Request body parameters

SuiBroadcastActionDto
  • unsigned_tx_b64 (required): Unsigned transaction bytes encoded as base64.
  • signatures (required): Array of base64-encoded signatures for the transaction.

Returned

SuiBroadcastActionResponseDto
  • tx_digest: Transaction digest of the broadcasted transaction.

Stake balance

Get staked balance for the given address:

Description

Get staked balance information for the given Sui wallet address.

Request parameters

Path params:

  • address: Sui wallet address.

Returned

SuiStakedBalanceResponseDto
  • wallet_address: Wallet address that was queried.
  • total_mist: Total staked balance in MIST.
  • total_sui: Total staked balance in SUI.
  • staked_objects: Array of StakedSuiObjectDto.
  • fungible_objects: Array of FungibleStakedSuiDto.