SimulateTransactionRequest

@Serializable
data class SimulateTransactionRequest(val transaction: String, val resourceConfig: SimulateTransactionRequest.ResourceConfig? = null, val authMode: SimulateTransactionRequest.AuthMode? = null)

Request for JSON-RPC method simulateTransaction.

Simulates a transaction to preview its effects without submitting it to the network. This is essential for Soroban transactions to calculate resource requirements and auth entries.

See also

Constructors

Link copied to clipboard
constructor(transaction: String, resourceConfig: SimulateTransactionRequest.ResourceConfig? = null, authMode: SimulateTransactionRequest.AuthMode? = null)

Types

Link copied to clipboard

Authorization mode for simulation.

Link copied to clipboard
@Serializable
data class ResourceConfig(val instructionLeeway: Long? = null)

Resource configuration for simulation.

Properties

Link copied to clipboard

Authorization mode for simulation. Controls how auth entries are handled.

Link copied to clipboard

Optional configuration for resource estimation.

Link copied to clipboard

Base64-encoded XDR TransactionEnvelope to simulate.