Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Methods

  • broadcastTx(tx: Uint8Array, timeoutMs?: number, pollIntervalMs?: number): Promise<DeliverTxResponse>
  • Broadcasts a signed transaction to the network and monitors its inclusion in a block.

    If broadcasting is rejected by the node for some reason (e.g. because of a CheckTx failure), an error is thrown.

    If the transaction is not included in a block before the provided timeout, this errors with a TimeoutError.

    If the transaction is included in a block, a DeliverTxResponse is returned. The caller then usually needs to check for execution success or failure.

    Parameters

    • tx: Uint8Array
    • timeoutMs: number = 60_000
    • pollIntervalMs: number = 3_000

    Returns Promise<DeliverTxResponse>

  • disconnect(): void
  • forceGetTmClient(): Tendermint34Client
  • getAccount(searchAddress: string): Promise<null | Account>
  • getAllBalances(address: string): Promise<readonly Coin[]>
  • Queries all balances for all denoms that belong to this address.

    Uses the grpc queries (which iterates over the store internally), and we cannot get proofs from such a method.

    Parameters

    • address: string

    Returns Promise<readonly Coin[]>

  • getBalance(address: string, searchDenom: string): Promise<Coin>
  • getBalanceStaked(address: string): Promise<null | Coin>
  • getBlock(height?: number): Promise<Block>
  • getChainId(): Promise<string>
  • getDelegation(delegatorAddress: string, validatorAddress: string): Promise<null | Coin>
  • getHeight(): Promise<number>
  • getTmClient(): undefined | Tendermint34Client

Generated using TypeDoc