eth_getBalance
POST
Returns the TRX balance of an account address, in sun.
param[0]
Addressstringrequired
A TRON account address. It is not a Base58 address but the 20-byte form obtained by removingthe 41 prefix from the TRON hexadecimal address. (e.g.) TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t →41a614f803b6fd780986a42c78ec9c7f77e6ded13c → 0xa614f803b6fd780986a42c78ec9c7f77e6ded13cparam[1]
Block Tagstringrequired
The block to query. TRON currently supports only latest.Responses
codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "ERROR_CODE","message": "Unauthorized"}
cURL
curl -X POST 'https://tron-mainnet.nodit.io' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{"jsonrpc": "2.0","id": 1,"method": "eth_getBalance","params": ["0xa614f803b6fd780986a42c78ec9c7f77e6ded13c","latest"]}'