/wallet/getnodeinfo - Tron
Example code for the getnodeinfo REST method. Complete guide on how to use getnodeinfo REST method in GetBlock Web3 documentation.
Parameters
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/wallet/getnodeinfo' \
--header 'Content-Type: application/json' \
--data-raw '{}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/wallet/getnodeinfo',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({})
}
);
console.log(await response.json());import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/wallet/getnodeinfo',
headers={'Content-Type': 'application/json'},
json={}
)
print(response.json())Response
{
"beginSyncNum": 68000000,
"block": "Num:68000123,ID:0000...",
"solidityBlock": "Num:68000100,ID:0000...",
"currentConnectCount": 30,
"activeConnectCount": 15,
"totalFlow": 123456789,
"configNodeInfo": {
"codeVersion": "4.7.4",
"p2pVersion": "11111"
}
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Was this helpful?