getStakeActivation RPC Method
Returns epoch activation information for a stake account
Parameters
string required
Pubkey of stake Account to query, as base-58 encoded string
object optional
Configuration object containing the following fields:
- commitment
stringoptional - minContextSlot
numberoptional The minimum slot that the request can be evaluated at - epoch
u64optional 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, ordeactivatingactive: <u64>- stake active during the epochinactive: <u64>- stake inactive during the epoch
Code sample
curl https://mainnet.koii.network -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
}