Hierarchy

  • APIClient

Constructors

Properties

Methods

Constructors

Properties

provider: APIProvider
v1: {
    chain: ChainAPI;
    history: HistoryAPI;
} = ...

Type declaration

__className: string = 'APIClient'

Methods

  • Type Parameters

    Parameters

    • args: {
          params?: unknown;
          path: string;
          responseType: T;
      }
      • Optional params?: unknown
      • path: string
      • responseType: T

    Returns Promise<InstanceType<T>>

  • Type Parameters

    • T extends keyof BuiltinTypes

    Parameters

    • args: {
          params?: unknown;
          path: string;
          responseType: T;
      }
      • Optional params?: unknown
      • path: string
      • responseType: T

    Returns Promise<BuiltinTypes[T]>

  • Type Parameters

    • T = unknown

    Parameters

    • args: {
          params?: unknown;
          path: string;
      }
      • Optional params?: unknown
      • path: string

    Returns Promise<T>

Generated using TypeDoc