Name of the contract to connect to.
Chain ID for the L2 network.
Additional options for connecting to the contract.
Optional
address?: AddressLikeCustom address to connect to the contract.
Optional
signerSigner or provider to connect to the contract.
An ethers.Contract object connected to the appropriate address and interface.
Generated using TypeDoc
Returns an ethers.Contract object for the given name, connected to the appropriate address for the given L2 chain ID. Users can also provide a custom address to connect the contract to instead. If the chain ID is not known then the user MUST provide a custom address or this function will throw an error.