⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol
Solana (SOL)

Method: POST getStakeActivation

dropdown

# getStakeActivation example for Solana (SOL)

POST getStakeActivation

Returns epoch activation information for a stake account

Parameters

Pubkey - string

Pubkey of stake account to query, as base-58 encoded string

Config - object

Configuration object containing the following optional fields: - commitment (optional) - epoch: u64 (optional) - epoch for which to calculate activation details. If parameter not provided, defaults to current epoch.

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getStakeActivation",
"params": ["CYRJWqiSjLitBAcRxPvWpgX3s5TvmN2SuRY3eEYypFvT"],
"id": "getblock.io"}'


Response

{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": {
        "active": 197717120,
        "inactive": 0,
        "state": "active"
    }
}