eth_getBlockTransactionCountByHash - Merlin

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

Parameters

DATA, 32 Bytes - Hash of a block.

params: [
	"0x9b58a44e96fde767d91026811e765b16fc5b137bbc3c5455c346d42ada0f8b8d",
];

Returns

QUANTITY - Integer of the number of transactions in this block.

Example

Request

curl --location --request POST 'https://merlin-mainnet.unifra.io/v1/your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_getBlockTransactionCountByHash",
    "params": [
        "0x9b58a44e96fde767d91026811e765b16fc5b137bbc3c5455c346d42ada0f8b8d"
    ],
    "id": 0
}'

Result

{
    "jsonrpc": "2.0",
    "id": 0,
    "result": "0x1"
}
Language
Click Try It! to start a request and see the response here!