Staking & Voting
getStakeActivation
Returns the stake activation information for a given account
Parameters
Public key of the stake account (base-58 encoded)
Response
Code Examples
Basic Request
Using web3.js
Notes
- Returns the stake activation information for a given stake account
- The activation state indicates whether the stake is active, inactive, activating, or deactivating
- The response is immediate as it reads from the current state
- The stake activation can change based on the epoch and commitment level
- The stake account must be a valid stake account
Best Practices
- Use appropriate commitment level based on your needs
- Cache results when appropriate to reduce RPC load
- Monitor for changes in stake activation
- Consider using websocket subscription for real-time updates
- Handle network errors and retry when appropriate
Common Errors
Code | Message | Solution |
---|---|---|
-32601 | Method not found | Verify you’re connected to a Solana RPC node |
-32602 | Invalid params | Check stake account public key |
-32007 | Stake account not found | Verify the stake account exists |
-32008 | Invalid stake account | Verify the account is a valid stake account |
Use Cases
-
Stake Activation Analysis
-
Stake Activation Monitoring
-
Stake Activation Planning