eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block matching the given block number.
Parameters
QUANTITY|TAG
- integer of a block number, or the string "earliest"
, "latest"
or "pending"
, as in the default block parameter. REQUIRED
Returns
QUANTITY
- integer of the number of transactions in this block.
Example
Request
curl --request POST \
--url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": ["0xe8"]
}
'
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
Last updated