getIdentity
Returns the identity pubkey for the current node

Parameters

None

Returns

  • identity: <base-58 encoded string>, the identity pubkey of the current node

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "getIdentity"
7
}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"identity": "7R16NuTSjkDcigGxSceKuSoFBUApoyxWpBCQ1ErgASYR"
5
},
6
"id": 1
7
}
Copied!