Skip to main content
Simulate a Solana transaction to preview logs, compute-unit usage, and account changes without submitting it to the network.

On ThorNode

Forwarded to the upstream node with a 10 s timeout and one retry on a transport error. Runs on the upstream node’s current state. Use sigVerify: false and replaceRecentBlockhash: true to simulate an unsigned or stale transaction, as in the example.

Parameters

string
required
The signed transaction, as an encoded string (base58 or base64).
string
Encoding used for the transaction data.
  • base58
  • base64
boolean
Skip the preflight transaction checks.
string
Commitment level to use for preflight.
  • confirmed
  • finalized
  • processed
boolean
If true, verify the transaction signatures.
boolean
If true, replace the transaction recent blockhash with the most recent one.
number
Minimum slot at which to perform preflight transaction checks.
boolean
If true, include inner instructions in the response.
object
array
Array of accounts to return, as base-58 encoded strings.
string
Encoding format for returned account data.
  • base64
  • base58
  • base64+zstd
  • jsonParsed

Response

object
Context of the simulation response.
object
Details of the simulated transaction result.