Validation compares calldata by hash. If even a single byte of data changes after you simulate, the data check fails, valid is false, and you should not sign. Re-simulate the transaction you actually intend to submit.
Definition
The validate step exists to catch modifications between review and signature. Calldata is checked by hash, not by a raw string compare, so any modification — including a different function or argument encoding — fails the data check.
How it works
Simulate the built transaction and show the user the predicted
amountOutand gas.Immediately before signing, send the same unsigned transaction with the
simulationIdto validate.If
checks.datais false, the payload is not the one that was simulated. Other checks (to,from,value,chainId) are reported independently.Do not sign. Re-simulate to get a fresh
simulationIdrather than retrying validation on the changed transaction.
How Enso does this
Call POST https://quoter.api.enso.build/api/v1/validate. See Validating Transactions and the Quoter FAQ. Quoter does not rewrite your calldata; a failed check means the unsigned transaction differs from the simulation.
FAQ
What if only the gas price changed?
Validate checks data, to, from, value, and chainId. Public Quoter docs do not list gas price as a checked field. If a field you changed is one of the five checks, valid will be false.
Can a change slip through if I skip validate?
Yes. The tamper check only runs when you call validate. Simulate-then-validate is the documented security model.
Related articles
How do I read Quoter validation checks?
How do I validate that a transaction has not been tampered with?
Why should I re-simulate instead of retrying validation?
Does Enso Quoter change my transaction?
What is a simulationId?
