> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# zkevm_isBlockConsolidated | zkEVM

> Polygon zkEVM API method that checks if a specific block has been consolidated. zkevm_isBlockConsolidated on zkEVM via Chainstack.

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.

## 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

<CodeGroup>
  ```jsx ethers.js theme={"system"}
  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");
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3
  node_url = "YOUR_CHAINSTACK_ENDPOINT"
  web3 = Web3(Web3.HTTPProvider(node_url))
  output = web3.provider.make_request('zkevm_isBlockConsolidated', ["0xd29e"])
  print(output)
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/polygon_zkevm_node_api/zkevm_methods/zkevm_isBlockConsolidated.json POST /942aad90bb6a082676497030b81e40ba
openapi: 3.0.0
info:
  title: Polygon ZKEVM Node API
  version: 1.0.0
  description: This is an API for interacting with a Polygon zkEVM node.
servers:
  - url: https://nd-363-550-219.p2pify.com
security: []
paths:
  /942aad90bb6a082676497030b81e40ba:
    post:
      tags:
        - upload
      summary: zkevm_isBlockConsolidated
      operationId: zkevm_isBlockConsolidated
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: zkevm_isBlockConsolidated
                params:
                  type: array
                  items:
                    type: string
                  default:
                    - '0xd29e'
      responses:
        '200':
          description: Checks if the given block is consolidated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````