Info API
This page is an overview of the Info API associated with AvalancheGo.
The Info API can be used to access basic information about an Avalanche node.
Format
This API uses the json 2.0 RPC format. For more information on making JSON RPC calls, see here.
Endpoint
Methods
info.acps
Returns peer preferences for Avalanche Community Proposals (ACPs)
Signature:
Example Call:
Example Response:
info.isBootstrapped
Check whether a given chain is done bootstrapping
Signature:
chain is the ID or alias of a chain.
Example Call:
Example Response:
info.getBlockchainID
Given a blockchain's alias, get its ID. (See admin.aliasChain.)
Signature:
Example Call:
Example Response:
info.getNetworkID
Get the ID of the network this node is participating in.
Signature:
Example Call:
Example Response:
Network ID of 1 = Mainnet Network ID of 5 = Fuji (testnet)
info.getNetworkName
Get the name of the network this node is participating in.
Signature:
Example Call:
Example Response:
info.getNodeID
Get the ID, the BLS key, and the proof of possession(BLS signature) of this node.
Note
This endpoint set is for a specific node, it is unavailable on the public server.
Signature:
nodeIDNode ID is the unique identifier of the node that you set to act as a validator on the Primary Network.nodePOPis this node's BLS key and proof of possession. Nodes must register a BLS key to act as a validator on the Primary Network. Your node's POP is logged on startup and is accessible over this endpoint.publicKeyis the 48 byte hex representation of the BLS key.proofOfPossessionis the 96 byte hex representation of the BLS signature.
Example Call:
Example Response:
info.getNodeIP
Get the IP of this node.
Note
This endpoint set is for a specific node, it is unavailable on the public server.
Signature:
Example Call:
Example Response:
info.getNodeVersion
Get the version of this node.
Signature:
where:
versionis this node's versiondatabaseVersionis the version of the database this node is usinggitCommitis the Git commit that this node was built fromvmVersionsis map where each key/value pair is the name of a VM, and the version of that VM this node runsrpcProtocolVersionis the RPCChainVM protocol version
Example Call:
Example Response:
info.getTxFee
Deprecated as of v1.12.2.
Get the fees of the network.
Signature:
txFeeis the default fee for issuing X-Chain transactions.createAssetTxFeeis the fee for issuing aCreateAssetTxon the X-Chain.createSubnetTxFeeis no longer used.transformSubnetTxFeeis no longer used.createBlockchainTxFeeis no longer used.addPrimaryNetworkValidatorFeeis no longer used.addPrimaryNetworkDelegatorFeeis no longer used.addSubnetValidatorFeeis no longer used.addSubnetDelegatorFeeis no longer used.
All fees are denominated in nAVAX.
Example Call:
Example Response:
info.getVMs
Get the virtual machines installed on this node.
Note
This endpoint set is for a specific node, it is unavailable on the public server.
Signature:
Example Call:
Example Response:
info.peers
Get a description of peer connections.
Signature:
nodeIDsis an optional parameter to specify what NodeID's descriptions should be returned. If this parameter is left empty, descriptions for all active connections will be returned. If the node is not connected to a specified NodeID, it will be omitted from the response.ipis the remote IP of the peer.publicIPis the public IP of the peer.nodeIDis the prefixed Node ID of the peer.versionshows which version the peer runs on.lastSentis the timestamp of last message sent to the peer.lastReceivedis the timestamp of last message received from the peer.benchedshows chain IDs that the peer is currently benched on.observedUptimeis this node's primary network uptime, observed by the peer.
Example Call:
Example Response:
info.uptime
Returns the network's observed uptime of this node. This is the only reliable source of data for your node's uptime. Other sources may be using data gathered with incomplete (limited) information.
Signature:
rewardingStakePercentageis the percent of stake which thinks this node is above the uptime requirement.weightedAveragePercentageis the stake-weighted average of all observed uptimes for this node.
Example Call:
Example Response:
Example Avalanche L1 Call
Example Avalanche L1 Response
info.upgrades
Returns the upgrade history and configuration of the network.
Example Call:
Example Response:
Is this guide helpful?