Skip to main content

Parameters

string
required
Public key of the stake account (base-58 encoded)
object
Configuration object containing:
string
Commitment level (processed, confirmed, finalized)
number
Epoch for which to calculate stake activation

Response

object
Object containing:
string
Activation state (active, inactive, activating, deactivating)
number
Active stake amount in lamports
number
Inactive stake amount in lamports

Code Examples

Basic Request

Using web3.js

Notes

  1. Returns the stake activation information for a given stake account
  2. The activation state indicates whether the stake is active, inactive, activating, or deactivating
  3. The response is immediate as it reads from the current state
  4. The stake activation can change based on the epoch and commitment level
  5. The stake account must be a valid stake account

Best Practices

  1. Use appropriate commitment level based on your needs
  2. Cache results when appropriate to reduce RPC load
  3. Monitor for changes in stake activation
  4. Consider using websocket subscription for real-time updates
  5. Handle network errors and retry when appropriate

Common Errors

Use Cases

  1. Stake Activation Analysis
  2. Stake Activation Monitoring
  3. Stake Activation Planning