← Polkadot overview

Polkadot · substrate

system_nodeRoles

Substrate RPC: system_nodeRoles

Substrate / Polkadot-family JSON-RPC. Reference: Polkadot wiki RPC

cURL

Endpoint: https://dot-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .

Terminal
curl -X POST https://dot-mainnet.eu1.azxa.io/<api-key> \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"system_nodeRoles","params":[]}'

Example request

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "system_nodeRoles",
  "params": []
}

Result

See node response

Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": null
}
Schema
{
  "type": "unknown"
}