getIdentity
Returns the identity pubkey for the current node
Common use cases
| Validator monitoring dashboard | Display which validator is serving RPC requests in monitoring tools. Correlate RPC performance metrics with specific validator identities when debugging issues or assessing node reliability across infrastructure. |
| RPC endpoint validation | Verify RPC endpoint serves expected validator before making critical requests. Applications confirm connection to trusted validator nodes by checking identity against whitelist before submitting sensitive transactions. |
Parameters
No parameters required.
Request
- cURL
- JavaScript
- Python
curl https://solana-mainnet.api.syndica.io/api-key/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getIdentity"
}'
// Using fetch
const response = await fetch('https://solana-mainnet.api.syndica.io/api-key/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "getIdentity"
})
});
const data = await response.json();
console.log(data);
import requests
import json
url = 'https://solana-mainnet.api.syndica.io/api-key/YOUR_API_KEY'
headers = {'Content-Type': 'application/json'}
data = {
"jsonrpc": "2.0",
"id": 1,
"method": "getIdentity"
}
response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.json())
Network Selection
Replace mainnet with devnet in the URL to query devnet instead.
Response
{
"jsonrpc": "2.0",
"result": {
"identity": "2r1F4iWqVcb8M1DbAjQuFpebkQHY9hcVU4WuW2DJBppN"
},
"id": 1
}
Response Fields
identity (string)
The identity pubkey of the current node (as a base-58 encoded string)
Related Methods
getVersion
Returns Solana software version running on the node. Pair with getIdentity when building validator profiles to display both identity and version information.
getClusterNodes
Returns full list of cluster validators with contact info and identity keys. Use with getIdentity to verify current RPC node appears in cluster membership list.
getHealth
Returns health status of the RPC node. Combine with getIdentity when monitoring validator fleet to associate health checks with specific validator identities.