dryRunTransactionBlock

abstract suspend fun dryRunTransactionBlock(txBytes: String, option: ExecuteTransactionBlockResponseOptions = 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:

Parameters

txBytes

The base64-encoded, BCS-serialized transaction data.

option

The response options to tailor which details of the dry run are returned.