getStakeActivation RPC Method
Returns epoch activation information for a stake account
Deprecated Method
This method is expected to be removed in solana-core
v2.0. Please use this
alternative
approach
instead.
Parameters #
string
required
Pubkey of stake Account to query, as base-58 encoded string
object
optional
Configuration object containing the following fields:
commitment string
optional
minContextSlot number
optional
The minimum slot that the request can be evaluated at
epoch u64
optional
epoch for which to calculate activation details. If parameter not provided, defaults to current epoch. DEPRECATED, inputs other than the current epoch return an error.
Result #
The result will be a JSON object with the following fields:
state: <string>
- the stake account's activation state, either:active
,inactive
,activating
, ordeactivating
active: <u64>
- stake active during the epochinactive: <u64>
- stake inactive during the epoch
Code sample #
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getStakeActivation",
"params": [
"CYRJWqiSjLitBAcRxPvWpgX3s5TvmN2SuRY3eEYypFvT",
{
"epoch": 4
}
]
}
'
Response #
{
"jsonrpc": "2.0",
"result": {
"active": 124429280,
"inactive": 73287840,
"state": "activating"
},
"id": 1
}