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

Type Parameters

  • T

Type declaration

    • (params: T, txOptions?: Scrt.SecretJS.TxOptions): Promise<Scrt.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!

      Parameters

      Returns Promise<Scrt.SecretJS.TxResponse>

  • simulate:function
    • Parameters

      Returns Promise<SimulateResponse>

Generated using TypeDoc