eth_getBalance

获取给定地址的账户余额。

参数

  1. DATA, 20 Bytes - 待查余额的地址。
  2. QUANTITY - 区块号,目前仅支持 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"}