Skip to main content

MetaMaskProvider <API>

Hierarchy

Index

Properties

isMetaMask

isMetaMask: boolean

Methods

on

  • on(event: connect, listener: (info: ProviderInfo) => void): void
  • on(event: disconnect, listener: (error: ProviderRpcError) => void): void
  • on(event: message, listener: (message: ProviderMessage) => void): void
  • on(event: chainChanged, listener: (chainId: string) => void): void
  • on(event: accountsChanged, listener: (accounts: ProviderAccounts) => void): void
  • Parameters

    Returns void

removeListener

  • removeListener(event: connect, listener: (info: ProviderInfo) => void): void
  • removeListener(event: disconnect, listener: (error: ProviderRpcError) => void): void
  • removeListener(event: message, listener: (message: ProviderMessage) => void): void
  • removeListener(event: chainChanged, listener: (chainId: string) => void): void
  • removeListener(event: accountsChanged, listener: (accounts: ProviderAccounts) => void): void
  • Parameters

    Returns void

request

  • request<Method, ResponseType>(args: Web3APIPayload<API, Method>): Promise<unknown>
  • Type parameters

    Parameters

    Returns Promise<unknown>