simulate Transaction
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
sig Verify
if true the transaction signatures will be verified (conflicts with replaceRecentBlockhash)
replace Recent Blockhash
if true the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with sigVerify)
min Context Slot
the minimum slot that the request can be evaluated at
inner Instructions
If true the response will include inner instructions. These inner instructions will be jsonParsed where possible, otherwise json.
accounts
Accounts configuration object