Constructors
Protected constructor
Parameters
tmClient: undefined | Tendermint34Client
Methods
broadcastTx
- broadcastTx(tx: Uint8Array, timeoutMs?: number, pollIntervalMs?: number): Promise<DeliverTxResponse>
Parameters
tx: Uint8Array
timeoutMs: number = 60_000
pollIntervalMs: number = 3_000
Protected forceGetQueryClient
Protected forceGetTmClient
- forceGetTmClient(): Tendermint34Client
Returns Tendermint34Client
getAccount
- getAccount(searchAddress: string): Promise<null | Account>
Parameters
Returns Promise<null | Account>
getAllBalances
- getAllBalances(address: string): Promise<readonly Coin[]>
Parameters
Returns Promise<readonly Coin[]>
getBalance
- getBalance(address: string, searchDenom: string): Promise<Coin>
Parameters
address: string
searchDenom: string
Returns Promise<Coin>
getBalanceStaked
- getBalanceStaked(address: string): Promise<null | Coin>
Parameters
Returns Promise<null | Coin>
getBlock
- getBlock(height?: number): Promise<Block>
Parameters
Returns Promise<Block>
getChainId
- getChainId(): Promise<string>
getDelegation
- getDelegation(delegatorAddress: string, validatorAddress: string): Promise<null | Coin>
Parameters
delegatorAddress: string
validatorAddress: string
Returns Promise<null | Coin>
getHeight
- getHeight(): Promise<number>
Protected getTmClient
- getTmClient(): undefined | Tendermint34Client
Returns undefined | Tendermint34Client
searchTx
Parameters
Returns Promise<readonly IndexedTx[]>
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.