API Reference

zks_L1BatchNumber

Returns the latest L1 batch number.

Example

Request

curl --location --request POST 'https://zksync-era-mainnet.unifra.io/v1/your-api-key' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1BatchNumber", "params": [ ]}'

Result

{ "jsonrpc": "2.0", "result": "0x544c", "id": 1 }
Path Params
string
required
Body Params
string
Defaults to 2.0
string
Defaults to zks_L1BatchNumber
params
array of strings
params
int32
Defaults to 1
Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json