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

coins coins coins coins
sol
Solana (SOL)

Method: POST getIdentity

dropdown

# getIdentity example for Solana (SOL)

POST getIdentity

Returns the identity pubkey for the current node

Parameters

-

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": "getIdentity",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "identity": "HE1dQi3teg3TLrK5RdU44iEiui598j4EgrjmQst3BRhJ"
    }
}