Learn getIdentity use cases, code examples, request parameters, response structure, and tips.
getIdentity
RPC method returns the public key (also known as the identity or node ID) of the specific Solana RPC node to which you are connected. Each node in the Solana network has a unique cryptographic keypair, and its public key serves as its identifier.
getClusterNodes
, you can match the identity from getIdentity
to a node in the cluster list to find more details about the specific node you are querying.result
field of the JSON-RPC response will be an object containing a single field:
identity
(string): The base-58 encoded public key of the RPC node.getIdentity
RPC method to retrieve the unique public key of the Solana node you are interacting with.