Sigil documentation
ReferenceJSON-RPC

sigil_getNodeInfo

Read chain_id, version, and protocol_version.

Method

sigil_getNodeInfo is registered in the canonical JSON-RPC catalog. Use POST /rpc, Content-Type: application/json, JSON-RPC 2.0 and a caller-controlled request id. Node RPC profile, build feature and runtime activation checks still apply.

Read chain_id, version, and protocol_version.

Request binding

Source handler: rpc_server::handle_node_info in sigil/node/sigil-node/src/rpc_server.rs, line 687.

The handler uses no directly named params.get fields, or delegates input parsing to a typed helper. Use the request types below rather than assuming an empty parameter object.

Read example

No parameters. Returns chain_id, version, and protocol_version.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sigil_getNodeInfo",
  "params": {}
}

Named YOUR_* values must be replaced with identifiers from the selected chain.

Responses and failures

Check HTTP status, parse the JSON-RPC envelope, reject error, and require result on success. Preserve large base-unit integers without floating-point rounding. A catalog method does not bypass authentication, capability, policy or activation requirements.

On this page