POST

/

id
jsonrpc
method
params
curl --request POST \
  --url https://rpc1.taurus.axiomesh.io/

Returns the number of transactions in a block matching the given block number

Body

id
number

Serves as a unique identifier for the request

jsonrpc
string

Indicates the version of JSON-RPC being used

method
string

Represents the name of the remote procedure or method to be called

params
array

Contains the list of parameters passed to the remote method

blockNumber
string

Hexadecimal block number, or the string “latest”, “earliest” or “pending”

Response

id
number

Returns unique identifier for the request

jsonrpc
string

Returns the version of JSON-RPC being used

blockTransactionCount
string

A hex code of the integer representing the number of transactions in the provided block

curl  'https://example-rpc.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"
}