Skip to main content

simulateTransaction

Simulate a transaction to preview its effects without executing it on chain.

  • transactionDataBcs contains the BCS-encoded transaction data (Base64-encoded).

Unlike executeTransaction, this does not require signatures since the transaction is not committed to the blockchain. This allows for previewing transaction effects, estimating gas costs, and testing transaction logic without spending gas or requiring valid signatures.

simulateTransaction(
transactionDataBcs: Base64!
): SimulationResult!

Arguments

simulateTransaction.transactionDataBcs ● Base64! non-null scalar

Type

SimulationResult object

The result of simulating a transaction, including the predicted effects, events, and any errors.