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.Tx
Assembly:  SecretNET (in SecretNET.dll)

Syntax


public Task<SimulateResponse> Simulate(
	MsgBase[] messages,
	TxOptions txOptions
)

Parameters

messages
Type: array<MsgBase>[]()[][]
The messages.
txOptions
Type: SecretNET.Tx..::..TxOptions
The tx options.

Return Value

SimulateResponse.