local_node_info - Nervos

Returns the local node information.

The local node means the node itself which is serving the RPC.

Parameters

  • none

Returns

Local node.

Example

Request

curl --location --request POST 'https://ckb-mirana.unifra.io/v1/4fb36720a57340d39aee4cf68511064a' \
--header 'Content-Type: application/json' \
--data-raw '{
  "id": 42,
  "jsonrpc": "2.0",
  "method": "local_node_info",
  "params": []
}'

Result

{
    "jsonrpc": "2.0",
    "result": {
        "active": false,
        "addresses": [
            {
                "address": "/ip4/34.231.21.246/tcp/8115/p2p/QmRcG71ic3tDuSZ7woqqBcrmivkowSbYUentDkEDuAYHk6",
                "score": "0x1"
            },
            {
                "address": "/ip4/0.0.0.0/tcp/8115",
                "score": "0x1"
            }
        ],
        "connections": "0x8",
        "node_id": "QmRcG71ic3tDuSZ7woqqBcrmivkowSbYUentDkEDuAYHk6",
        "protocols": [
            {
                "id": "0x64",
                "name": "/ckb/syn",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x65",
                "name": "/ckb/relay",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x66",
                "name": "/ckb/tim",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x6e",
                "name": "/ckb/alt",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x2",
                "name": "/ckb/identify",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x0",
                "name": "/ckb/ping",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x1",
                "name": "/ckb/discovery",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x3",
                "name": "/ckb/flr",
                "support_versions": [
                    "2"
                ]
            },
            {
                "id": "0x4",
                "name": "/ckb/disconnectmsg",
                "support_versions": [
                    "2"
                ]
            }
        ],
        "version": "0.104.1 ( )"
    },
    "id": 42
}
Language
Click Try It! to start a request and see the response here!