Skip to main content
Version: main branch

admin_getNodeInfo

Returns general information about the Alphabill partition node.

Parameters

None

Returns

  • nodeInfo (object):

    • networkId (number) - A unique identifier of the network this node is running. Common values include: mainnet=1, testnet=2, local=3.
    • partitionId (number) - A unique identifier of the partition this node is running.
    • name (string) - Name of the node, one of "money node", "tokens node" or "evm node".
    • self (object peerInfo) - An object containing the peer info of the node:
      • identifier (string) - Peer ID derived from the public key of the peer.
      • addresses (array of string) - An array of network addresses of the peer in human-readable multiaddr format.
    • bootstrapNodes (array of peerInfo) - Bootstrap peers.
    • rootValidators (array of peerInfo) - Root Chain validators.
    • partitionValidators (array of peerInfo) - Complete list of partition validators.
    • openConnections (array of peerInfo) - Connected peers.

Example

Request

curl http://127.0.0.1:26866/rpc \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "admin_getNodeInfo"
}'

Response

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"networkId": 3,
"partitionId": 1,
"name": "money node",
"self": {
"identifier": "16Uiu2HAmPiKjNyjG118MzK1NJDJGKVUHfmSBu39GxbpRJYvWEsQN",
"addresses": [
"/ip4/127.0.0.1/tcp/26666"
]
},
"bootstrapNodes": [
{
"identifier": "16Uiu2HAmKp7dUGK7RJh89XGP2PQkjJ7pncEYmPiFdGiX3oJ5RxQZ",
"addresses": [
"/ip4/127.0.0.1/tcp/26662"
]
}
],
"rootValidators": [
{
"identifier": "16Uiu2HAm1MifgZ69tF1UCdZcxH1zjH83iZHP1F1jRjyfzoPUbjwN",
"addresses": [
"/ip4/127.0.0.1/tcp/26663"
]
},
{
"identifier": "16Uiu2HAmKp7dUGK7RJh89XGP2PQkjJ7pncEYmPiFdGiX3oJ5RxQZ",
"addresses": [
"/ip4/127.0.0.1/tcp/26662"
]
},
{
"identifier": "16Uiu2HAmLPdhxAy2q9fabKeNTrkyW1CmiZStzCJRdTbHXiBBs4vK",
"addresses": [
"/ip4/127.0.0.1/tcp/26664"
]
}
],
"partitionValidators": [
{
"identifier": "16Uiu2HAmL2JjitEJdaaZ6EBdQFhY9qDFvAdpoau5YcZLUkBeZuKs",
"addresses": [
"/ip4/127.0.0.1/tcp/26668"
]
},
{
"identifier": "16Uiu2HAmPUKpAj5qnS8JETjtWEGky8DUCuBbRtTcPG31zWeCtD2j",
"addresses": [
"/ip4/127.0.0.1/tcp/26667"
]
},
{
"identifier": "16Uiu2HAmPiKjNyjG118MzK1NJDJGKVUHfmSBu39GxbpRJYvWEsQN",
"addresses": [
"/ip4/127.0.0.1/tcp/26666"
]
}
],
"openConnections": [
{
"identifier": "16Uiu2HAkzkm1Qb4XdYKfEXtNDDYQtNbBSNrs183P4N4pJtrSUB4s",
"addresses": [
"/ip4/127.0.0.1/tcp/28666"
]
},
{
"identifier": "16Uiu2HAm1MifgZ69tF1UCdZcxH1zjH83iZHP1F1jRjyfzoPUbjwN",
"addresses": [
"/ip4/127.0.0.1/tcp/26663"
]
},
{
"identifier": "16Uiu2HAmKp7dUGK7RJh89XGP2PQkjJ7pncEYmPiFdGiX3oJ5RxQZ",
"addresses": [
"/ip4/127.0.0.1/tcp/26662"
]
},
{
"identifier": "16Uiu2HAmLPdhxAy2q9fabKeNTrkyW1CmiZStzCJRdTbHXiBBs4vK",
"addresses": [
"/ip4/127.0.0.1/tcp/26664"
]
},
{
"identifier": "16Uiu2HAmL2JjitEJdaaZ6EBdQFhY9qDFvAdpoau5YcZLUkBeZuKs",
"addresses": [
"/ip4/127.0.0.1/tcp/26668"
]
},
{
"identifier": "16Uiu2HAmRcKwwW8dwF2SKzwSkXDi9ebMpbSAbEEVXLiPfLmVQo6r",
"addresses": [
"/ip4/127.0.0.1/tcp/28667"
]
},
{
"identifier": "16Uiu2HAmRcKwwW8dwF2SKzwSkXDi9ebMpbSAbEEVXLiPfLmVQo6r",
"addresses": [
"/ip4/127.0.0.1/tcp/28667"
]
},
{
"identifier": "16Uiu2HAmPUKpAj5qnS8JETjtWEGky8DUCuBbRtTcPG31zWeCtD2j",
"addresses": [
"/ip4/127.0.0.1/tcp/26667"
]
},
{
"identifier": "16Uiu2HAkvA1eX2Vw1jv3JMbg9X6WeerGnB3Kzc9kbf4hk47bbSX6",
"addresses": [
"/ip4/127.0.0.1/tcp/28668"
]
},
{
"identifier": "16Uiu2HAkvA1eX2Vw1jv3JMbg9X6WeerGnB3Kzc9kbf4hk47bbSX6",
"addresses": [
"/ip4/127.0.0.1/tcp/28668"
]
}
]
}
}