Hierarchy

  • EthereumClient

Constructors

Properties

blockchainId: Blockchain = Blockchain.Ethereum
sdk: default

Methods

  • Type Parameters

    • T

    • A extends unknown[]

    • S extends boolean

    • R = S extends false ? T[] : (null | T)[]

    Parameters

    • method: keyof Eth
    • args: A[]
    • Optional options: {
          swallowErrors?: S;
      }
      • Optional swallowErrors?: S

    Returns Promise<R>

  • Type Parameters

    Parameters

    • blockHashOrBlockNumber: (string | number)[]
    • Optional swallowErrors: S
    • Optional address: string

    Returns Promise<R[]>

  • Type Parameters

    • T extends {
          error?: Error;
          id: string;
          jsonrpc: string;
          result: any;
      }

    Parameters

    • result: T | T[]
    • swallowErrors: boolean = false

    Returns null | T | (null | T)[]

Generated using TypeDoc