Skip to content
Alchemy Logo

zkevm_getBatchByNumber

POST
/{apiKey}

Returns the details of a batch specified by its number or a special tag (earliest, latest). If includeTransactions is true, the full transaction objects are included; otherwise, only transaction hashes are returned.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

string or enumrequired

The batch number or a tag (earliest, latest) to identify the batch.

booleanrequired

If true, returns full transaction objects; if false, returns only transaction hashes.

Responses

200

The batch details corresponding to the given number or tag.

Was this page helpful?