you_getTransactionCount

描述:返回指定地址发生的交易数量。

parameter

数据类型 备注
String, 20 字节 地址
String 整数块编号,或字符串"latest"、"earliest"或"pending"
"params": ["0x9c651b933bDCc4Ceb3473b7Dc76930c961067c7a","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_getTransactionCount",
    "params": ["0x9c651b933bDCc4Ceb3473b7Dc76930c961067c7a","latest"]
}'

Response:

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