Parameters
quantity or tag— the block number in hex format or block tag (latest,earliest,pending,safe,finalized)
Response
data— the RLP-encoded header
quantity or tag — the block number in hex format or block tag (latest, earliest, pending, safe, finalized)data — the RLP-encoded headerdebug_getRawHeader code examplesconst { JsonRpcProvider } = require("ethers");
const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");
async function call() {
const result = await provider.send("debug_getRawHeader", [
"latest"
]);
console.log(result);
}
call();
Was this page helpful?