The L1 provider (Web3ZKsyncL1) extends the Web3ZkSync class, which exposes a number of L2-only RPC methods methods like getL1BatchNumber. These methods will always fail on the L1 provider since it is not connected to a node that supports those RPC methods.
The L1 provider (
Web3ZKsyncL1
) extends theWeb3ZkSync
class, which exposes a number of L2-only RPC methods methods likegetL1BatchNumber
. These methods will always fail on the L1 provider since it is not connected to a node that supports those RPC methods.