cURL
curl --request POST \ --url https://{network}.s.chainbase.online/v1/{api-key} \ --header 'Content-Type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": [ "0x4e216c95f527e9ba0f1161a1c4609b893302c704f05a520da8141ca91878f63e" ] } '
{ "id": 1, "jsonrpc": "2.0", "result": "<string>" }
Returns the number of transactions in a block given the block’s block hash.
Parameters
DATA
Returns
QUANTITY
"demo"
1
"2.0"
Successful Response