Skip to main content

What optional fields can I send in a Quoter transaction?

Besides data, value, to, and from, a Quoter transaction can include operationType, receiver, spender, executor, origin, authorityDelegate, and initCode, as documented on the simulate guide.

J
Written by Javier Diaz

Besides the required data, value, to, and from fields, a Quoter transaction can include operationType, receiver, spender, executor, origin, authorityDelegate, and initCode, as documented on the simulate guide.

Definition

Optional transaction fields describe how the fork should execute or whose balances to track, when the defaults (a standard Call from the sender) are not enough. They do not make Quoter rewrite the calldata you will submit.

How it works

  • operationType is 0 for Call (the default) or 1 for DelegateCall, including some smart-account flows.

  • receiver is the token receiver when it differs from the sender.

  • spender is the address that needs to be approved on each tokenIn for the simulation to run.

  • executor is a contract executor address, origin is the original caller, and authorityDelegate is a delegation authority address, when those roles apply.

  • initCode is init code for contract creation. At the request level you can also send preSimulationTransactions as setup calls.

How Enso does this

These fields are documented on Simulating Transactions. Send them on POST https://quoter.api.enso.build/api/v1/simulate. The validate request’s documented transaction fields remain data, to, from, value, and chainId. Public docs give short descriptions of the optional simulate fields; use them when your execution model needs them, and see the Telegram developer chat if a field’s exact role is unclear for your case.

FAQ

Are any of these required for a simple ERC-20 swap?

No. A standard Call needs data, value, to, and from, plus the top-level chainId, tokenIn, tokenOut, and amountIn.

Does adding optional fields change what I submit on-chain?

Quoter still does not modify the transaction you built. Optional fields only affect how the simulation is run and how token flows are interpreted.

Related articles

  • How do I simulate a delegate call or smart-account transaction?

  • How do I track token flows in a Quoter simulation?

  • What are preSimulationTransactions?

  • How do I simulate a transaction that needs a token approval first?

  • Does Enso Quoter change my transaction?

Sources

Did this answer your question?