SingleMsgTx<T>: {
    simulate(params, txOptions?): Promise<SimulateResponse>;
    (params, txOptions?): Promise<SecretJS.TxResponse>;
}

SingleMsgTx is a function that broadcasts a single message transaction. It also has a simulate() method to execute the transaction without committing it on-chain. This is helpful for gas estimation.

WARNING: tx.compute.instantiateContract() & tx.compute.executeContract() simulation is not supported for security reasons!

Type Parameters

  • T

Type declaration

  • simulate:function
    • Parameters

      Returns Promise<SimulateResponse>

Generated using TypeDoc