Skip to main content

suix_getStakesByIds RPC Method

Return one or more [DelegatedStake]. If a Stake was withdrawn its status will be Unstaked.

Updated on
Dec 10, 2024

suix_getStakesByIds RPC Method

Parameters

staked_sui_ids
array
REQUIRED
The staking id

Returns

result
array
List of validators with their staking pool information and stakes
validatorAddress
string
The unique address of the validator
stakingPool
string
The unique identifier for the staking pool associated with the validator
stakes
array
Details of stakes for this validator
stakedSuiId
string
Unique identifier of the staked SUI token
stakeRequestEpoch
string
Epoch when the stake was requested
stakeActiveEpoch
string
Epoch when the stake became active
principal
string
Principal amount of the stake, expressed in the smallest unit of SUI
status
string
Current status of the stake (e.g., 'Active', 'Pending')
estimatedReward
string
Estimated reward for the stake, expressed in the smallest unit of SUI
Request
1
curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "suix_getStakesByIds",
7
"params": [
8
[
9
"0xc2483a09d7b736885490b94b0179a3f3c96a8bab403c5a9b60f803a44711b39c"
10
]
11
]
12
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free