Skip to main content

eth_getBlockTransactionCountByNumber

The Number of total transactions in the given block

Params

(1)

1. blocknumber (required)

(one of)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$

Result

(blockTransactionCountByHash)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$

Endpoint

Params

blocknumber


Request

curl -X POST --data \
'{
"method": "eth_getBlockTransactionCountByNumber",
"params": [
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://evmtestnet.confluxrpc.com