Class EthereumProvider

Hierarchy

  • EthereumProvider

Index

Properties

accounts

accounts: string[]

chainId

chainId: number

Optional Readonly isWalletConnect

isWalletConnect: boolean

signer

signer: InstanceType<typeof UniversalProvider>

Methods

disconnect

  • disconnect(): Promise<void>
  • Returns Promise<void>

off

  • off(event: string, callback: (error: Error | null, payload: any | null) => void): void
  • Parameters

    • event: string
    • callback: (error: Error | null, payload: any | null) => void
        • (error: Error | null, payload: any | null): void
        • Parameters

          • error: Error | null
          • payload: any | null

          Returns void

    Returns void

on

  • on(event: string, callback: (error: Error | null, payload: any | null) => void): void
  • Parameters

    • event: string
    • callback: (error: Error | null, payload: any | null) => void
        • (error: Error | null, payload: any | null): void
        • Parameters

          • error: Error | null
          • payload: any | null

          Returns void

    Returns void

once

  • once(event: string, callback: (error: Error | null, payload: any | null) => void): void
  • Parameters

    • event: string
    • callback: (error: Error | null, payload: any | null) => void
        • (error: Error | null, payload: any | null): void
        • Parameters

          • error: Error | null
          • payload: any | null

          Returns void

    Returns void

removeListener

  • removeListener(event: string, callback: (error: Error | null, payload: any | null) => void): void
  • Parameters

    • event: string
    • callback: (error: Error | null, payload: any | null) => void
        • (error: Error | null, payload: any | null): void
        • Parameters

          • error: Error | null
          • payload: any | null

          Returns void

    Returns void

request

sendAsync

  • Parameters

    • args: RequestArguments
    • callback: (error: Error | null, response: any) => void
        • (error: Error | null, response: any): void
        • Parameters

          • error: Error | null
          • response: any

          Returns void

    Returns void