simulateTransaction

suspend fun SolanaClient.simulateTransaction(transaction: Transaction, commitment: Commitment? = null, sigVerify: Boolean? = null, replaceRecentBlockhash: Boolean? = null, minContextSlot: ULong? = null, innerInstructions: Boolean? = null, accounts: List<String>? = null): Response<Response.RPC<SimulateTransactionResponse>>

Simulate a transaction and return the result

Return

Simulated transaction result

Parameters

transaction

Transaction to simulate

commitment

Commitment level to simulate the transaction at

sigVerify

if true the transaction signatures will be verified (conflicts with replaceRecentBlockhash)

replaceRecentBlockhash

if true the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with sigVerify)

minContextSlot

the minimum slot that the request can be evaluated at

innerInstructions

If true the response will include inner instructions. These inner instructions will be jsonParsed where possible, otherwise json.

accounts

Accounts configuration object