Skip to main content

getIdentity RPC Method

Returns the identity pubkey for the current node.

Updated on
Sep 20, 2024

getIdentity RPC Method

Parameters

This method does not accept any parameters

Returns

result
The result will be a JSON object with the following fields:
identity
The public key identity of the current node as base-58 encoded string
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","id":1, "method":"getIdentity"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free