Links

zkevm_batchNumberByBlockNumber

Returns the batch number of the batch connected to the block.

Parameters

  • blockNumber: (string) - The block number (in hex)

Returns

  • batchNumber - the batch number of the batch connected to the block

Example

Request
curl --location 'https://polygon-zkevm-mainnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"zkevm_batchNumberByBlockNumber",
"params":["0x0"],
"id":33
}'
Result
{
"jsonrpc": "2.0",
"id": 33,
"result": "0x0"
}