you_getBlockTransactionCountByHash

描述:返回指定块内的交易数量,使用哈希来指定块

parameter

数据类型 备注
String, 32 字节 块哈希
params: ['0x85b85ed01e0998587fb9890760e64eb005cf8e932ba9d721d215a84133e22745']

return

数据类型 备注
String 指定块内的交易数量,整数

example

Request:

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

Response:

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