Parameters
quantity or tag— the block number in hex format or block tag (latest,earliest,pending,safe,finalized)
Response
array— an array of receipt objects for all transactions in the block
quantity or tag — the block number in hex format or block tag (latest, earliest, pending, safe, finalized)array — an array of receipt objects for all transactions in the blocketh_getBlockReceipts code examplesconst { JsonRpcProvider } = require("ethers");
const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");
async function call() {
const result = await provider.send("eth_getBlockReceipts", [
"latest"
]);
console.log(result);
}
call();
Was this page helpful?