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"
}
Returns the number of transactions in a block by block number
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"
}
Returns the number of transactions in the block
The response is of type object
.
Was this page helpful?