POST
/
9de47db917d4f69168e3fed02217d15b
curl --request POST \
  --url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getStakeActivation",
  "params": [
    "6D2jqw9hyVCpppZexquxa74Fn33rJzzBx38T58VucHx9",
    {
      "epoch": 554
    }
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}

You can get the current epoch & account values on Solscan > Validators.

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 today

Start 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 for getStakeActivation 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
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:getStakeActivation
params
any[]

Response

200 - application/json
Stake activation details
jsonrpc
string
id
integer
result
object