Skip to content
Alchemy Logo

simulateTransaction

POST
/{apiKey}

Simulates a transaction invocation to estimate resource fees, required authorizations, and return values without submitting to the network.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringrequired

Base64-encoded TransactionEnvelope XDR with a single invokeHostFunction operation.

objectoptional

Resource configuration with instructionLeeway for extra instruction budget.

stringoptional

Output format for XDR fields, either "base64" (default) or "json".

stringoptional

Authorization mode. "enforce" (default), "record", or "record_allow_nonroot".

Responses

200

Simulation result with fee estimate, events, and transaction data.

Was this page helpful?