Last updated 25 days ago
data - hex string
data
32-byte block hash.
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "hmyv2_getBlockTransactionCountByHash", "params": ["0x910c18611575d42685a4d122a71c9d359a68c3f9786e1ca5a18c27819f8504ff"], "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": 1 }
Example code for the hmyv2_getBlockTransactionCountByHash json-rpc method. Сomplete guide on how to use hmyv2_getBlockTransactionCountByHash json-rpc in GetBlock.io Web3 documentation.