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