ChainSafe / web3-plugin-zksync

MIT License
4 stars 5 forks source link

L1 Provider Exposes L2-Only RPC Methods #34

Closed danforbes closed 1 month ago

danforbes commented 2 months ago

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.