dry Run Transaction Block
open suspend override fun dryRunTransactionBlock(txBytes: String, option: ExecuteTransactionBlockResponseOptions): Result<DryRunTransactionBlockQuery.Data?, SuiError>
Simulates the execution of a transaction block without committing it to the network.
This is useful for estimating gas costs, verifying outcomes, and debugging potential errors before submission.
Return
A Result which is either:
Ok
: Containing a nullable DryRunTransactionBlockQuery.Data object with the results of the simulation, such as the gas summary and effects.Err
: Containing a SuiError object with a list of GraphQLErrors.
Parameters
tx Bytes
The base64-encoded, BCS-serialized transaction data.
option
The response options to tailor which details of the dry run are returned.