Skip to main content

What does CallFailed mean in a Quoter simulation?

CallFailed means the transaction call failed during Quoter simulation. Check the sender balance and calldata, then simulate again.

J
Written by Javier Diaz

CallFailed is a Quoter simulation error type: the transaction call failed during simulation. Check that the sender has sufficient balance in the scenario you are modeling and that the calldata is correct. 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. CallFailed is one of the documented types: CallFailed, CallReverted, DecodeError, and ProviderError.

How it works

  • Confirm you are looking at result.error on a 200 response, not at an HTTP 400 or 500.

  • Read the error type and any details in result.error.

  • Check that the sender has sufficient balance in the scenario you are modeling and that the calldata is correct. 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 CallFailed 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?

Sources

Did this answer your question?