Simulate Transaction
API Reference
Simulate Transaction
Simulate a Soroban transaction for resource estimates.
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.
View on GitHub
Request Body
The base64-encoded XDR of the transaction to simulate.
Response Fields
The estimated Soroban resource fee in stroops.
The ledger number used for the simulation.
The base64-encoded
SorobanTransactionData containing the required footprints.A list of diagnostic events emitted during the simulation.
Error Codes
| Code | Description |
|---|---|
VALIDATION_ERROR | The provided XDR is not a valid Soroban transaction. |
SIMULATION_FAILED | The smart contract execution failed or panicked. |