zkevm_batchNumberByBlockNumber RPC Method
Parameters
blockNumber
string
REQUIRED
The block number for which the batch number is to be retrieved
Returns
result
The batch number that the input block number belongs to
Request
1curl https://docs-demo.zkevm-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"zkevm_batchNumberByBlockNumber","params":["0x24573"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free