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.
Show properties
string
The API version of the RPC node.
integer
Slot in which the data was fetched.
object
Details of the simulated transaction result.
Show properties
array | null
object | null
Error if the transaction failed, null if successful.
array | null
Inner instructions executed during the transaction.
integer | null
Total size in bytes of all account data loaded during simulation.
array | null
Program execution logs from the transaction simulation.
object | null
Replacement blockhash information when replaceRecentBlockhash is enabled.
Show properties
string
The replacement blockhash.
integer
The last valid block height for the replacement blockhash.
object | null
Data returned by the transaction if any.
Show properties
string
string[]
integer | null
Total compute units consumed during the simulation.