Skip to main content
POST
Simulate Transaction
Interacts with the Soroban RPC to simulate the execution of a transaction. This is required for smart contract calls to determine resource fees and footprints.

Request Body

string
required
The base64-encoded XDR of the transaction to simulate.

Response Fields

string
The estimated Soroban resource fee in stroops.
number
The ledger number used for the simulation.
string
The base64-encoded SorobanTransactionData containing the required footprints.
array
A list of diagnostic events emitted during the simulation.

Error Codes

SDK Example

View on GitHub