POST
/
eth_getBlockTransactionCountByNumber
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_getBlockTransactionCountByNumber \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBlockTransactionCountByNumber",
  "params": [
    "0x1b4"
  ]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_getBlockTransactionCountByNumber
required

The method to call

params
any[]
required

Block number

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns the number of transactions in the block
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

The number of transactions in the block

Example:

"0x0"