Skip to main content
POST
/
942aad90bb6a082676497030b81e40ba
zkevm_isBlockConsolidated
curl --request POST \
  --url https://nd-363-550-219.p2pify.com/942aad90bb6a082676497030b81e40ba \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "zkevm_isBlockConsolidated",
  "params": [
    "0xd29e"
  ]
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}
Polygon zkEVM API method that checks if a specific block has been consolidated.
The zkevm_isBlockConsolidated method allows users to check whether a specific block is part of a consolidated batch or not.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • blockNumber — the block number to check if it is connected to a verified batch, encoded as hexadecimal.

Response

  • result — a boolean value indicating whether the block is connected to a verified batch or not.

zkevm_isBlockConsolidated code examples

const ethers = require('ethers');
const NODE_URL = "YOUR_CHAINSTACK_ENDPOINT";
const provider = new ethers.JsonRpcProvider(NODE_URL);

const isBlockConsolidated = async (blockNumber) => {

    // This will return a boolean value
    const isConsolidated = await provider.send("zkevm_isBlockConsolidated", [blockNumber]);
    console.log(`Is Block ${blockNumber} Consolidated: ${isConsolidated}`);
};

// Replace "0xd29e" with the desired block number in hexadecimal format
isBlockConsolidated("0xd29e");

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:zkevm_isBlockConsolidated
params
string[]

Response

200 - application/json

Checks if the given block is consolidated.

jsonrpc
string
id
integer
result
object
Last modified on June 25, 2026