Skip to main content

Module: dataEntities/networks

addDefaultLocalNetwork()

addDefaultLocalNetwork(): object

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

See

https://github.com/OffchainLabs/nitro

Returns

MemberType
l1NetworkL1Network
l2NetworkL2Network

Source

arbitrum-sdk/src/lib/dataEntities/networks.ts:445


getEthBridgeInformation()

getEthBridgeInformation(rollupContractAddress, l1SignerOrProvider): Promise< EthBridge >

Returns the addresses of all contracts that make up the ETH bridge

Parameters

ParameterTypeDescription
rollupContractAddressstringAddress of the Rollup contract
l1SignerOrProviderSignerOrProviderAn L1 signer or provider

Returns

Promise\< EthBridge >

EthBridge object with all information about the ETH bridge

Source

arbitrum-sdk/src/lib/dataEntities/networks.ts:373