TxOptions Properties
The TxOptions type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
BroadcastCheckIntervalMs |
When waiting for the tx to commit on-chain, how much time (in milliseconds) to wait between checks.
Smaller intervals will cause more load on your node provider. Keep in mind that blocks on Secret Network take about 6 seconds to finilize.
Defaults to `6.000`. Ignored if `waitForCommit = false`.
|
![]() |
BroadcastMode |
If `BroadcastMode.Sync` - Broadcast transaction to mempool and wait for CheckTx response.
@see https://docs.tendermint.com/master/rpc/#/Tx/broadcast_tx_sync
If `BroadcastMode.Async` Broadcast transaction to mempool and do not wait for CheckTx response.
@see https://docs.tendermint.com/master/rpc/#/Tx/broadcast_tx_async
|
![]() |
BroadcastTimeoutMs |
How much time (in milliseconds) to wait for tx to commit on-chain.
Defaults to `60.000`. Ignored if `waitForCommit = false`.
|
![]() |
ExplicitSignerData |
ExplicitSignerData can be used to override `chainId`, `accountNumber` and `accountSequence`.
This is usefull when using BroadcastMode.Async or when you don't want secretNET to query for `accountNumber` and `accountSequence` from the chain. (smoother in UIs, less load on your node provider).
|
![]() |
FeeDenom |
Defaults to "uscrt".
|
![]() |
FeeGranter |
Address of the fee granter from which to charge gas fees.
|
![]() |
GasLimit |
Defaults to `25_000`.
|
![]() |
GasPriceInFeeDenom |
E.g. gasPriceInFeeDenom=0.25 and feeDenom="uscrt" => Total fee for tx is `0.25 * gasLimit`uscrt. Defaults to `0.25`.
|
![]() |
Memo |
Defaults to "".
|
![]() |
SkipSimulate |
If AlwaysSimulateTransactions is set on the SecretNetworkClient, the transaction is simulate to get the estimated gas fee.
If SkipSimulate is set in the TxOptions, the simulation is skipped.
|
![]() |
WaitForCommit |
If `false` returns immediately with only the `transactionHash` field set. Defaults to `true`.
|