SimulateTransactionResponse

@Serializable
data class SimulateTransactionResponse(val err: JsonElement?, val logs: List<String>?, val accounts: List<SimulateTransactionResponse.AccountInfo>?, val unitsConsumed: ULong, val returnData: SimulateTransactionResponse.ReturnData?, val innerInstructions: JsonElement?)

Constructors

Link copied to clipboard
constructor(err: JsonElement?, logs: List<String>?, accounts: List<SimulateTransactionResponse.AccountInfo>?, unitsConsumed: ULong, returnData: SimulateTransactionResponse.ReturnData?, innerInstructions: JsonElement?)

Types

Link copied to clipboard
@Serializable
data class AccountInfo(val lamports: ULong, val owner: String, val data: JsonElement, val executable: Boolean, val rentEpoch: ULong)
Link copied to clipboard
@Serializable
data class ReturnData(val programId: String, val data: String)

Properties

Link copied to clipboard

Accounts requested if any

Link copied to clipboard
val err: JsonElement?

Error if transaction failed, null if transaction succeeded.

Link copied to clipboard
val innerInstructions: JsonElement?

Defined only if innerInstructions was set to true

Link copied to clipboard

Array of log messages the transaction instructions output during execution, null if simulation failed before the transaction was able to execute (for example due to an invalid blockhash or signature verification failure)

Link copied to clipboard

the most-recent return data generated by an instruction in the transaction

Link copied to clipboard

The number of compute budget units consumed during the processing of this transaction