/wallet/getnodeinfo - Tron

This endpoint returns diagnostic information about the node, including its version, active connections, and block-sync state.

Parameters

This endpoint does not require parameters.

Request

bashcurl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/wallet/getnodeinfo' \
--header 'Content-Type: application/json' \
--data-raw '{}'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/wallet/getnodeinfo',
    {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({})
    }
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.post(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/wallet/getnodeinfo',
    headers={'Content-Type': 'application/json'},
    json={}
)

print(response.json())

Response

json{
  "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

FieldTypeDescription
blockstringThe node's current head block
solidityBlockstringThe node's latest confirmed (Solidity) block
currentConnectCountintegerNumber of peer connections
configNodeInfo.codeVersionstringThe java-tron software version

Use Cases

  • Health Checks: Confirm a node is connected and syncing
  • Confirmation Lag: Compare head and Solidity block heights
  • Version Reporting: Read the java-tron version for support
  • Peer Monitoring: Track peer connection counts

Error Handling

HTTP StatusMessageDescription
200OKThe request succeeded; some TRON errors are returned in the 200 body as an Error field
400Bad requestThe request body is malformed or a required field is missing
500Internal errorThe node failed to process the request