eth_getBlockTransactionCountByNumber
Retrieves the number of transactions in a block specified by its block number
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getBlockTransactionCountByNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}'
'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xfe"
}
Request params
Name | Type | Description |
---|---|---|
id | integer | Request identifier |
jsonrpc | string | JSON-RPC version |
method | string | API method name |
Parameters | array of strings | |
blockNumber | string | The block number or tag ("latest", "earliest", "pending") at which to get the balance. |
Response
200
The number of transactions in the specified block.Name | Type | Description |
---|---|---|
Parameters | object | |
id | integer | |
jsonrpc | string | |
result | string |