API Reference

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" }
Path Params
string
required
Body Params
string
Defaults to 2.0
string
Defaults to eth_getBlockTransactionCountByHash
params
array of strings
params
int32
Defaults to 0
Responses

Language
Choose an example:
application/json