Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Connector
    • Network

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Network(actions: Actions, urlMap: {}, connectEagerly?: boolean): Network
  • Parameters

    • actions: Actions
    • urlMap: {}

      A mapping from chainIds to RPC urls.

      • [chainId: number]: url | url[]
    • Default value connectEagerly: boolean = true

      A flag indicating whether connection should be initiated when the class is constructed.

    Returns Network

Properties

Protected Readonly actions

actions: Actions

provider

provider: Eip1193Bridge | undefined

{@inheritdoc Connector.provider}

Methods

activate

  • activate(desiredChainId?: number): Promise<void>
  • Initiates a connection.

    Parameters

    • Default value desiredChainId: number = Number(Object.keys(this.urlMap)[0])

      The desired chain to connect to.

    Returns Promise<void>

deactivate

  • deactivate(...args: unknown[]): Promise<void> | void
  • Initiate a disconnect.

    Parameters

    • Rest ...args: unknown[]

    Returns Promise<void> | void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Static property

Generated using TypeDoc