Returns the TRX balance of the provided account address, in sun.
Parameters
DATA, 20 Bytes - Target account address for balance inquiry.QUANTITY- Block number; currently, only "latest" is supported.
Returns
QUANTITY: the TRX balance as a hexadecimal integer, in sun (1 TRX = 1,000,000 sun). Use integer arithmetic with sufficient precision when processing the result.
Example
Request
curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0xf0cc5a2a84cd0f68ed1667070934542d673acbd8", "latest"],
"id": 64
}'Response
{"jsonrpc":"2.0","id":64,"result":"0x492780"}0x492780 represents 4,794,240 sun, or 4.79424 TRX.