zks_L1BatchNumber

Returns the latest L1 batch number.

Parameters:

None

Example:

// Request
curl https://zksync-era.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1BatchNumber", "params": [ ]}'

// Result
{
  "jsonrpc": "2.0",
  "result": "0x544c",
  "id": 1
}

Last updated