BlockPI Network
Search
⌃K
Comment on page

zks_L1ChainId

Returns the latest L1 batch number.
Parameters:
None

Example:

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