SAUCE SDK
Sauce is a Turing-complete runtime for the EVM and SVM. Your program reads live state from any number of contracts, branches on what it finds, and takes the best path by composing them at execution time. No contract to deploy, and no extra block between reading state and acting on it. Your program enforces the conditions you write. Launch support for Ethereum, Base and Solana; see supported chains and preview availability.
Three copy-pasteable paths from install to a compiled program.
import { routes } from "@eco-incorp/sauce";
const now = BigInt(Math.floor(Date.now() / 1000));
const built = routes
.openRoute("base", `function main() { USDC.transfer(${recipient}n, 1_000_000n); return 0n; }`, {
source: "ethereum", pot, portal, sourcePortal, creator, prover,
deadline: now + 3600n, rewardDeadline: now + 7200n,
})
.reward([{ token: usdc, amount: 1_000_000n }]);
built.intent; // the assembled cross-chain intent
built.publishCalldata(); // calldata to publish itRequires Node 24+ for this quickstart. Compiling in the browser needs await ready() and the WASM asset. See browser setup.
One language for EVM and Solana: shared logic compiles to both targets. See language and target limits.
Runnable programs, each with full source and live execution. New here? Start with best-pool swap.
Non-custodial by architecture.
Programs run inside a Pot. On private Pots, only the owner can execute. See the security model for shared and intent Pots.
Byte-verifiable output.
Rebuild a program with the same pinned compiler, dependencies and settings, and compare the resulting bytecode. A match shows the build is reproducible, not that the script is safe.
Self-serve first: install the SDK, or call the hosted routing APIs.
Full Expression
Install the SDK and write your own. Full programmability, your scripts in your repo, compiled locally, byte-verifiable.
Cross-Chain Routing & Swap Execution
Call hosted routing APIs. For partners who need template swaps and would rather integrate an endpoint than a toolchain: Eco's /quote and /swap endpoints run production swaps through our EcoSwap Sauce script.
