Sauce v1 is closed access. Contact Eco to integrate.
When to use Sauce
Use Sauce when later calls need to depend on state read during the same transaction. A program can query contracts, compare results, choose a branch and execute the selected calls. On the EVM, you send the program to an existing Pot rather than deploying a contract for each program. For a fixed sequence of destination calls, start with Routes destination calls. Sauce adds conditions, loops and other runtime logic.What you get
How it works
- Write a program in SauceScript, or let the SDK’s token, swap and deposit builders write it for you.
- Compile it locally with the compiler that ships inside the SDK. The output is Sauce bytecode, not a contract.
- Execute it through your Pot, an account minted by the Kitchen.
cook(engine, program)runs the bytecode on the named engine and pays the Kitchen’s current execution fee. - Or package it as an intent.
Base(program, options).reward(...)compiles the program and builds an Eco intent whose destination fulfillment runs it.
Execution behavior
- Atomic. A program executes in one transaction on its target chain and reverts as a whole on an unhandled failure. Cross-chain intents coordinate separate transactions; a child intent that fails does not roll back a completed parent.
- Pot ownership.
cookis owner-only. For direct intent routes, the owner is the destination Portal’s Executor. Move assets into the Pot and return leftovers within the same fulfillment; do not leave funds or allowances in the shared Pot. - Execution fee. Each cook pays the Kitchen’s current fee in the chain’s native token, in addition to network gas and any native value the program spends. Read
executionFee()before building an EVM call. A fee increase can make a previously funded call revert. - Verifiable. Bytecode is reproducible from source, and the SDK ships hash-pinned verification for its settlement program.
Requirements and deployments
Use Node 24 or later with@eco-incorp/sauce 0.99.4 and compiler 2.3.0. Sauce v1 is closed access. See architecture and deployments for the release addresses and chain-specific deployment information.
Next steps
Sauce SDK
Packages, requirements and integration paths.
Getting started
Build, prepare the Pot, fund and execute, step by step.
Cookbook
Complete programs: best-pool swap, order split, settle, CCTP split.
