TxClient..::..Simulate Method (array<MsgBase>[]()[][], TxOptions)
Used to simulate a complex transactions, which contains a list of messages, without broadcasting it to the chain. Can be used to get a gas estimation or to see the output without actually committing a transaction on-chain.
The input should be exactly how you'd use it in Tx.Broadcast(), except that you don't have to pass in gasLimit, gasPriceInFeeDenom and feeDenom.
Namespace:
SecretNET.TxAssembly: SecretNET (in SecretNET.dll)
Syntax
Parameters
- messages
- Type: array<MsgBase>[]()[][]
The messages.
- txOptions
- Type: SecretNET.Tx..::..TxOptions
The tx options.