Returns the identity pubkey for the current node
This method does not require any parameters.
Show result fields
The identity pubkey of the current node (base-58 encoded)
curl http://rpc.orbitflare.com -X POST -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "id": 1, "method": "getIdentity" }'
import { Connection } from '@solana/web3.js'; const connection = new Connection('http://rpc.orbitflare.com'); const identity = await connection.getIdentity(); console.log(identity);
from solana.rpc.api import Client client = Client("http://rpc.orbitflare.com") response = client.get_identity() print(response)