eth_getBalance

返回指定账户地址的余额。

返回指定账户地址的余额。

参数

  1. DATA, 20 Bytes - 待查询余额的目标账户地址。
  2. QUANTITY - 区块号;目前仅支持 "latest"。

示例

请求

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

响应

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