getStakeActivation - Solana
getStakeActivation. Provides the activation status of a stake account
getStakeActivation - solana [Value: 10CU]
Provides the activation status of a stake account, including its active, inactive, and activating stake amounts
Use cases
- Fetch the current activation status of staked accounts
- Track activation changes to manage staking more effectively
- Evaluate stake activation to maximize staking rewards
Constraints
- Only covers present stake activation information
- Requires latest network data for accuracy
- API rate restrictions may limit retrieval rate
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://solana.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1, "method":"getStakeActivation", "params": ["Buc3N8TitzhVtvy7sm85YWpY2F5PAAKV2iLP1cZAbwrJ"]}'
Response
200
{
"jsonrpc": "2.0",
"result": {
"state": "active",
"active": 123456789,
"inactive": 0
},
"id": 1
}
Request params
idinteger
jsonrpcstring
methodstring
array
accountPublicKeystring
The public key of the account to query.
epochstring
The epoch for which to retrieve the stake activation information.
minContextSlotobject
The minimum slot at which the request can be evaluated.
commitmentstring
The level of commitment required for the query
- finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
- confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
- processed - The node will query its most recent block. Note that the block may not be complete
Response
200
Provides the activation status of a stake accountResponse params
object
idinteger
jsonrpcstring
resultstring
object
contextobject
Contains information about the current state of the program
object
slotinteger
The slot number used to retrieve the fee calculator.
apiVersionstring
The version of the Solana RPC API being used
valueobject
object
activeinteger
The amount of stake that is currently active, in lamports.
inactiveinteger
The amount of stake that is currently inactive, in lamports.
stateboolean
The activation state of the stake, which can be "inactive", "activating", "active", or "deactivating".