Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProviderAdapter

This class functions as a wrapper around up-to-date EIP-1193 Ethereum provider, so outdated packages (mainly web3x-es) could interact with it.

Hierarchy

  • ProviderAdapter

Implements

  • EthereumProvider

Constructors

constructor

Properties

Private funcs

funcs: Map<Function, function>

Private provider

Methods

on

  • on(notification: Web3xNotifications, listener: LegacyListener): this
  • Parameters

    Returns this

removeAllListeners

  • removeAllListeners(): void
  • Returns void

removeListener

  • removeListener(notification: Web3xNotifications, listener: LegacyListener): this
  • Parameters

    Returns this

send

  • send(method: string, params?: any[]): Promise<any>
  • Parameters

    • method: string
    • Optional params: any[]

    Returns Promise<any>

Generated using TypeDoc