Hierarchy

  • StargateClient
    • SentinelClient

Constructors

  • Parameters

    • tmClient: undefined | Tendermint34Client
    • options: StargateClientOptions = {}

    Returns SentinelClient

Properties

sentinelQuery: undefined | SentinelQueryClient

Methods

  • 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
    • Optional timeoutMs: number
    • Optional pollIntervalMs: number

    Returns Promise<DeliverTxResponse>

  • Broadcasts a signed transaction to the network without monitoring it.

    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 broadcasted, a string containing the hash of the transaction is returned. The caller then usually needs to check if the transaction was included in a block and was successful.

    Parameters

    • tx: Uint8Array

    Returns Promise<string>

    Returns the hash of the transaction

  • Returns void

  • Returns CometClient

  • Returns QueryClient & AuthExtension & BankExtension & StakingExtension & TxExtension

  • Parameters

    • searchAddress: string

    Returns Promise<null | Account>

  • 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[]>

  • Parameters

    • address: string
    • searchDenom: string

    Returns Promise<Coin>

  • Parameters

    • address: string

    Returns Promise<null | Coin>

  • Parameters

    • Optional height: number

    Returns Promise<Block>

  • Returns Promise<string>

  • Returns undefined | CometClient

  • Parameters

    • delegatorAddress: string
    • validatorAddress: string

    Returns Promise<null | Coin>

  • Returns Promise<number>

  • Returns undefined | QueryClient & AuthExtension & BankExtension & StakingExtension & TxExtension

  • Parameters

    • address: string

    Returns Promise<SequenceResponse>

  • Parameters

    • id: string

    Returns Promise<null | IndexedTx>

  • Parameters

    • query: SearchTxQuery

    Returns Promise<IndexedTx[]>

  • Creates an instance from a manually created Comet client. Use this to use Comet38Client or Tendermint37Client instead of Tendermint34Client.

    Parameters

    • cometClient: CometClient
    • Optional options: StargateClientOptions

    Returns Promise<StargateClient>

Generated using TypeDoc