Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

Client to call Accumulate RPC APIs.

Hierarchy

  • Client

Index

Constructors

  • new Client(endpoint: string): Client

Methods

  • call<T>(method: string, params?: any): Promise<T>
  • Direct RPC call.

    Type parameters

    • T

    Parameters

    • method: string

      RPC method

    • Optional params: any

      method parameters

    Returns Promise<T>

  • describe(): Promise<any>
  • faucet(url: AccURL): Promise<any>
  • metrics(metric: string, duration: number): Promise<any>
  • Parameters

    • metric: string
    • duration: number

    Returns Promise<any>

  • queryAcmeOracle(): Promise<number>
  • queryData(url: string | AccURL, entryHash?: string): Promise<any>
  • queryKeyPageIndex(url: string | AccURL, key: string | Uint8Array): Promise<any>
  • querySignerVersion(signer: AccURL | TxSigner, publicKeyHash?: Uint8Array): Promise<number>
  • status(): Promise<any>
  • version(): Promise<any>
  • Wait for a transaction (and its associated synthetic tx ids) to be delivered. Throw an error if the transaction has failed or the timeout is exhausted.

    Parameters

    Returns Promise<void>

    void

Generated using TypeDoc