Skip to content
Alchemy Logo

unsafe_requestAddStake

POST
/{apiKey}

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.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringrequired

The address of the transaction signer.

string[]required

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

stringrequired

The amount to stake (in SUI base units).

stringrequired

The address of the validator to which the stake is delegated.

stringoptional

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

stringrequired

Maximum gas budget for the transaction.

Responses

200

The unsigned transaction for adding stake.

Was this page helpful?