Returns the number of transactions in a block matching the given block number
Body
Serves as a unique identifier for the request
Indicates the version of JSON-RPC being used
Represents the name of the remote procedure or method to be called
Contains the list of parameters passed to the remote methodHexadecimal block number, or the string “latest”, “earliest” or “pending”
Response
Returns unique identifier for the request
Returns the version of JSON-RPC being used
A hex code of the integer representing the number of transactions in the provided block
curl 'https://rpc1.aries.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": ["latest"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}