Returns epoch activation information for a stake account.
Supported on Solana (mainnet) only.
Parameters
<string>
- Pubkey of stake account to query, as base-58 encoded string- (optional)
<object>
- Configuration object containing the following fields:- (optional)
commitment: <string>
- Commitment - (optional)
epoch: <u64>
- epoch for which to calculate activation details. If parameter not provided, defaults to current epoch. - (optional)
minContextSlot: <number>
- set the minimum slot that the request can be evaluated at.
- (optional)
Returns
The result will be a JSON object with the following fields:
state: <string
- the stake account's activation state, one of:active
,inactive
,activating
,deactivating
active: <u64>
- stake active during the epochinactive: <u64>
- stake inactive during the epoch
API Endpoint
The format of an Solana API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/solana/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/solana/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/solana/ \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "getStakeActivation",
"params": [
"CYRJWqiSjLitBAcRxPvWpgX3s5TvmN2SuRY3eEYypFvT",
{
"epoch": 4
}
]
}
'
Result
{
"jsonrpc": "2.0",
"result": {
"active": 124429280,
"inactive": 73287840,
"state": "activating"
},
"id": 1
}