Constructors Protected constructornew Cosm Wasm Client( tmClient: undefined | Tendermint34Client ) : CosmWasmClient Parameters tmClient: undefined | Tendermint34Client Methods broadcast Tx broadcast Tx( tx: Uint8Array , timeoutMs?: number , pollIntervalMs?: number ) : Promise < DeliverTxResponse > Parameters tx: Uint8Array timeoutMs: number = 60_000 pollIntervalMs: number = 3_000 Protected force Get Query Clientforce Get Query Client( ) : QueryClient & AuthExtension & BankExtension & TxExtension & WasmExtension Returns QueryClient & AuthExtension & BankExtension & TxExtension & WasmExtension Protected force Get Tm Clientforce Get Tm Client( ) : Tendermint34Client Returns Tendermint34Client get Account get Account( searchAddress: string ) : Promise < null | Account > Parameters Returns Promise < null | Account > get Balance get Balance( address: string , searchDenom: string ) : Promise < Coin > Parameters address: string searchDenom: string Returns Promise < Coin > get Block get Block( height?: number ) : Promise < Block > Parameters Returns Promise < Block > get Chain Id get Chain Id( ) : Promise < string > get Codes get Codes( ) : Promise < readonly Code [] > Returns Promise < readonly Code [] > get Contract get Contract( address: string ) : Promise < Contract > get Contracts get Contracts( codeId: number ) : Promise < readonly string [] > Parameters Returns Promise < readonly string [] > get Height get Height( ) : Promise < number > Protected get Query Clientget Query Client( ) : undefined | QueryClient & AuthExtension & BankExtension & TxExtension & WasmExtension Returns undefined | QueryClient & AuthExtension & BankExtension & TxExtension & WasmExtension get Sequence get Sequence( address: string ) : Promise < SequenceResponse > Parameters Returns Promise < SequenceResponse > Protected get Tm Clientget Tm Client( ) : undefined | Tendermint34Client Returns undefined | Tendermint34Client query Contract Raw query Contract Raw( address: string , key: Uint8Array ) : Promise < null | Uint8Array > Parameters address: string key: Uint8Array Returns Promise < null | Uint8Array > query Contract Smart query Contract Smart( address: string , queryMsg: any ) : Promise < any > Parameters address: string queryMsg: any Returns Promise < any > search Tx search Tx( query: SearchTxQuery , filter?: SearchTxFilter ) : Promise < readonly IndexedTx [] > Parameters query: SearchTxQuery filter: SearchTxFilter = {} Returns Promise < readonly IndexedTx [] > Legend Settings Theme OS Light Dark
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.