getIdentity RPC Method

Returns the identity pubkey for the current node.

Parameters

None

Code Sample

curl https://rpc.testnet.soo.network/rpc \
-X POST \
-H "Content-Type: application/json" \
-d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getIdentity"
}'

Response

{
  "jsonrpc": "2.0",
  "result": {
    "identity": "5ThJTCxpdn54bk3gBAWKZS4K9ogHEX56WooYbXQDnm3Q"
  },
  "id": 1
}

Result Details

The result field will be a JSON object containing:

  • identity: <string>
    • The identity pubkey of the current node
    • Encoded as a base-58 string
    • Uniquely identifies the node in the network