eth_getBalance

获取给定地址的账户余额

参数

序号数据类型描述
1DATA, 20 Bytes待查余额的地址
2QUANTITY目前仅支持"latest"

返回值
QUANTITY - 账户余额,单位:sun

示例

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
    "jsonrpc": "2.0",
    "method": "eth_getBalance",
    "params": ["0x41f0cc5a2a84cd0f68ed1667070934542d673acbd8", "latest"],
    "id": 64
}'

结果

{"jsonrpc":"2.0","id":64,"result":"0x492780"}