Cluster & Node
getIdentity
Returns the identity pubkey for the current node.
Parameters
This method takes no parameters.
Result
objectAn object with identity (the identity pubkey of the current node, as base-58 encoded string).
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getIdentity"
}'Response
JSON{
"jsonrpc": "2.0",
"result": {
"identity": "2r1F4iWqVcb8M1DbAjQuFpebkQHY9hcVU4WuW2DJBppN"
},
"id": 1
}