Skip to main content
POST
/
942aad90bb6a082676497030b81e40ba
zkevm_batchNumber
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_batchNumber",
  "params": []
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}
Polygon zkEVM API method that returns the current batch number of the chain. The Polygon zkEVM uses batch verification to improve scalability and reduce gas fees. This means that multiple transactions are grouped together and verified as a single batch using zero-knowledge proofs. The zkevm_batchNumber method returns the current batch number of the zkEVM, which is used to identify the latest batch of transactions being verified.
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

  • none

Response

  • result — the latest batch number of the Polygon zkEVM chain, encoded as hexadecimal. The batch number is updated every time a new batch of transactions is added to the chain.

zkevm_batchNumber code examples

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

const batchNumber = async () => {

    // This will return the value in Hex
    const batchNumber = await provider.send("zkevm_batchNumber");
    console.log(`Batch Number: ${batchNumber}`);
  };

batchNumber();

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:zkevm_batchNumber
params
array

Response

200 - application/json

Returns the current batch number.

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