Parameters
data— the hash of the block
Response
quantity— the number of transactions in the block
data — the hash of the blockquantity — the number of transactions in the blocketh_getBlockTransactionCountByHash code examplesconst { JsonRpcProvider } = require("ethers");
const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");
async function call() {
const result = await provider.send("eth_getBlockTransactionCountByHash", []);
console.log(result);
}
call();
Was this page helpful?