30 Compute Units.
Parameters
None.Returns
result The result will be a JSON object with the following fields:
identityThe public key identity of the current node as base-58 encoded string.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
30 Compute Units.
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.// Result
{
"jsonrpc": "2.0",
"result": {
"identity": "HnnWuaRUp63oBLNbxpo5wjAuazp2ukobyUvGsvMKX85d"
},
"id": 1
}
curl https://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getIdentity"}'
curl https://devnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getIdentity"}'