DecodeError is a Quoter simulation error type: Quoter could not decode the transaction result. Verify that the data field contains valid calldata for the target contract, then simulate again.
Definition
When POST /api/v1/simulate returns HTTP 200 and result.status is "Error", result.error describes why the fork execution failed. DecodeError is one of the documented types: CallFailed, CallReverted, DecodeError, and ProviderError.
How it works
Confirm you are looking at
result.erroron a 200 response, not at an HTTP 400 or 500.Read the error type and any details in
result.error.Verify that the
datafield contains valid calldata for the target contract, then simulate again.Do not sign or submit a transaction whose latest simulation is
"Error".After a
"Success"result, validate the unsigned transaction before signing.
How Enso does this
Error Handling lists these common simulation failures and the recommended fix for each. Simulate at https://quoter.api.enso.build. If you are instead submitting an Enso Route tx that failed on-chain after a successful Route quote, that is a different path — see the Route troubleshooting articles.
FAQ
Is DecodeError an HTTP status code?
No. It is a simulation error type inside a processed simulate response. The HTTP status in this case is typically 200.
Should I retry immediately?
Retry only after you have changed the transaction, the setup, or the inputs the error is pointing at. A tight retry of the same failing calldata will usually fail again.
Related articles
Why is my Quoter simulation status Error but the HTTP status is 200?
How do I check if a transaction will revert?
What are preSimulationTransactions?
How do I simulate a DeFi transaction before sending it?
What does CallReverted mean in a Quoter simulation?
