admin_getNodeInfo
Returns general information about the Alphabill partition node.
Parameters
None
Returns
-
nodeInfo
(object):systemId
(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
(objectpeerInfo
) - 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 ofpeerInfo
) - Bootstrap peers.rootValidators
(array ofpeerInfo
) - Root Chain validators.partitionValidators
(array ofpeerInfo
) - Complete list of partition validators.openConnections
(array ofpeerInfo
) - 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": {
"systemId": 1,
"name": "money node",
"self": {
"identifier": "16Uiu2HAm5vakCs1Eq1Y6W2zNaUCNEFrnKWpLWRk5aBzrNNkQ6vPa",
"addresses": [
"/ip4/127.0.0.1/tcp/26666"
]
},
"bootstrapNodes": [
{
"identifier": "16Uiu2HAmKG85pVV8YLboc9jcqAYta5y9DMhB3pjWAnBRy1LLvtEC",
"addresses": [
"/ip4/127.0.0.1/tcp/26662"
]
}
],
"rootValidators": [
{
"identifier": "16Uiu2HAmKG85pVV8YLboc9jcqAYta5y9DMhB3pjWAnBRy1LLvtEC",
"addresses": [
"/ip4/127.0.0.1/tcp/26662"
]
},
{
"identifier": "16Uiu2HAmKmZ19iXctcnp27DLBaneHWFk6DR1JUbzo44Rzqb7gqCe",
"addresses": [
"/ip4/127.0.0.1/tcp/26663"
]
},
{
"identifier": "16Uiu2HAmJFe711jsopJ1CcGNA6ecZuLecGDojeDi8EDpencJ4HUy",
"addresses": [
"/ip4/127.0.0.1/tcp/26664"
]
}
],
"partitionValidators": [
{
"identifier": "16Uiu2HAm5vakCs1Eq1Y6W2zNaUCNEFrnKWpLWRk5aBzrNNkQ6vPa",
"addresses": [
"/ip4/127.0.0.1/tcp/26666"
]
},
{
"identifier": "16Uiu2HAmMGrgJcDqMJMmAmLnugNR8pAzp7hR1VLn7Pek8fPgeV8A",
"addresses": [
"/ip4/127.0.0.1/tcp/26667"
]
}
],
"openConnections": [
{
"identifier": "16Uiu2HAmKG85pVV8YLboc9jcqAYta5y9DMhB3pjWAnBRy1LLvtEC",
"addresses": [
"/ip4/127.0.0.1/tcp/26662"
]
},
{
"identifier": "16Uiu2HAmKmZ19iXctcnp27DLBaneHWFk6DR1JUbzo44Rzqb7gqCe",
"addresses": [
"/ip4/127.0.0.1/tcp/26663"
]
},
{
"identifier": "16Uiu2HAmJFe711jsopJ1CcGNA6ecZuLecGDojeDi8EDpencJ4HUy",
"addresses": [
"/ip4/127.0.0.1/tcp/26664"
]
},
{
"identifier": "16Uiu2HAmMGrgJcDqMJMmAmLnugNR8pAzp7hR1VLn7Pek8fPgeV8A",
"addresses": [
"/ip4/127.0.0.1/tcp/26667"
]
}
]
}
}