unsafe_requestAddStake

Creates an unsigned transaction to stake SUI by selecting one or more SUI coins, specifying the amount, and choosing a validator’s address. This operation deposits the funds into the validator’s staking pool. Gas must be paid with a separate coin.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
signerstringRequired
The address of the transaction signer.
coinslist of stringsRequired

A list of Coin<SUI> object IDs to be used for staking.

amountstringRequired

The amount to stake (in SUI base units).

validatorstringRequired
The address of the validator to which the stake is delegated.
gas_budgetstringRequired
Maximum gas budget for the transaction.
gasstringOptional

The object ID of the gas coin to be used. If not provided, one will be auto-selected.

Response

The unsigned transaction for adding stake.
txBytesstring or null
The unsigned transaction encoded in base64.
gaslist of objects or null
The gas object to be used.
inputObjectslist of objects or null

List of objects required as inputs (e.g., stake coin, Move modules).