executeTransactionBlock

abstract suspend fun executeTransactionBlock(txBytes: String, signatures: List<String>, option: ExecuteTransactionBlockResponseOptions = ExecuteTransactionBlockResponseOptions()): Result<ExecuteTransactionBlockMutation.Data?, SuiError>

Submits a pre-signed transaction block to the Sui network for execution.

Return

A Result which is either:

  • Ok: Containing a nullable ExecuteTransactionBlockMutation.Data object with the transaction response.

  • Err: Containing a SuiError object with a list of GraphQLErrors.

Parameters

txBytes

The base64-encoded, BCS-serialized transaction data.

signatures

A list of base64-encoded signatures corresponding to the signers.

option

The response options to specify which details of the executed transaction to return (e.g., effects, object changes).