unsafe_requestAddStake
Action required: Support for Sui JSON-RPC will end on September 25, 2026. Please migrate to Sui gRPC before then to avoid disruption. You can find our migration guide here.
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
docs-demoFor higher throughput, create your own API key
Request
The address of the transaction signer.
A list of Coin<SUI> object IDs to be used for staking.
The amount to stake (in SUI base units).
The address of the validator to which the stake is delegated.
The object ID of the gas coin to be used. If not provided, one will be auto-selected.
Maximum gas budget for the transaction.
Responses
200
The unsigned transaction for adding stake.