Solana getStakeActivation
method
The Solana getStakeActivation
method returns the stake activation state for a given stake account.
This method provides the stake activation state, which indicates whether the stake is active, inactive, or in a state of activation or deactivation. It is useful for tracking the state of a stake account.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
stakePubkey
— the public key of the stake account to retrieve the activation state for.options
— (optional) additional options:epoch
— the epoch for which to retrieve the stake activation state.
Response
value
— the stake activation state:state
— the state of the stake (can be “active”, “inactive”, “activating”, or “deactivating”).active
— the amount of active stake.inactive
— the amount of inactive stake.
Use case
A practical use case forgetStakeActivation
is to track the state of a stake account. This can be useful for wallets or other applications that need to display or make use of this information.Body
application/json
Response
200 - application/json
Stake activation details
The response is of type object
.