you_getBalance

描述:返回指定地址账户的最新余额

parameter

参数 备注
String 20 字节,要检查余额的地址
String 整数块编号,或者字符串"latest", "earliest" 或 "pending"
params: ['0xA6FB67336FA6678e63b82700eba6b6275B01B6DD','latest']

return

数据类型 备注
String 当前余额,单位:lu

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "you_getBalance", "params": ["0xA6FB67336FA6678e63b82700eba6b6275B01B6DD", "latest"]}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x1158e460913d00000"
}