Skip to main content

networks

Functions

addDefaultLocalNetwork()

function addDefaultLocalNetwork(): object

Registers a custom network that matches the one created by a Nitro local node. Useful in development.

Returns

object

NameTypeDefined in
l1NetworkL1NetworkdataEntities/networks.ts:446
l2NetworkL2NetworkdataEntities/networks.ts:447

See

https://github.com/OffchainLabs/nitro

Defined in

dataEntities/networks.ts:445


getEthBridgeInformation()

function getEthBridgeInformation(rollupContractAddress: string, l1SignerOrProvider: SignerOrProvider): Promise<EthBridge>

Parameters

ParameterTypeDescription
rollupContractAddressstringAddress of the Rollup contract
l1SignerOrProviderSignerOrProviderAn L1 signer or provider

Returns

Promise<EthBridge>

EthBridge object with all information about the ETH bridge

Defined in

dataEntities/networks.ts:373