Skip to main content

Node Info

Get Arkhia's mirror node info

info

To configure your web3Provider, please refer to the Getting Started Docs:

net_version

Returns the current chain id.

Parameters

None

Returns

Hex string or Integer: Current chain id

web3Provider.eth.getChainId()    .then((res) => console.log(`-> get node version`, res))    .catch(e => console.log('-> get node version: ' + e));

web3_clientVersion

Returns the current mirror node client version

Parameters

None

Returns

String: Current client version

web3Provider.eth.getNodeInfo()    .then((res) => console.log(`-> get is node listening`, res))    .catch(e => console.log('-> get is node listening: ' + e));