eth_getBalance

获取给定地址的账户余额

参数

序号

数据类型

描述

1

DATA, 20 Bytes

待查余额的地址

2

QUANTITY

目前仅支持"latest"

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

示例

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{
    "jsonrpc": "2.0",
    "method": "eth_getBalance",
    "params": ["0x41f0cc5a2a84cd0f68ed1667070934542d673acbd8", "latest"],
    "id": 64
}'

结果

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