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
You can check the Staking API Reference here:
- Rendered doc page.
- Staking OpenApi
Authentication
In order to use staking api related endpoints you need to include your API KEY.
Heads up! To obtain a valid API key required for authentication, please refer to the Authentication > Auth section of the documentation.
Header:
| Name | Description | Example value | Required |
|---|---|---|---|
X-API-KEY | Your api key value | <API_KEY_VALUE> | ✅ |
X-NETWORK | Blockchain network identifier | mainnet | ⚪ |
X-NETWORK header
Use the X-NETWORK header to select the Sui network.
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.
- Endpoint:
/api/v1/sui/native/networks - Method:
GET
Response payload fields:
| Field | Description |
|---|---|
name | Internal blockchain entry name |
type | Blockchain type string (always SUI) |
chain_id | Chain identifier |
is_default | true when this network is used as fallback |
Stake action
Craft an unsigned stake transaction:
- Endpoint:
/api/v1/sui/native/action/stake - Method:
POST
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:
- Endpoint:
/api/v1/sui/native/action/unstake - Method:
POST
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 theStakedSuiobject to withdraw.
Returned
SuiStakeActionResponseDto
unsigned_tx_b64: Unsigned transaction bytes encoded as base64.
Prepare action
Gathers signatures and unsigned transaction:
- Endpoint:
/api/v1/sui/native/action/prepare - Method:
POST
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:
- Endpoint:
/api/v1/sui/native/action/broadcast - Method:
POST
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:
- Endpoint:
/api/v1/sui/native/stake-balance/{address} - Method:
GET
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 ofStakedSuiObjectDto.fungible_objects: Array ofFungibleStakedSuiDto.