SAUCE SDK
Get started in < 2 minutes
Start with a USDC payment. Use the CLI or SDK to compile the same source.
1. Install
Use Node 24+. In an empty directory, run the three commands to set up the project and pin the SDK.
2. Write the program
Save the payment as pay.sauce.ts. Amounts use USDC’s six decimals: 1000000 is 1 USDC.
3. Compile
Use the CLI or the TypeScript SDK. Both print the same 223-byte program as hex. This step compiles locally; it does not sign or send a transaction.
4. Next
Simulate the payment, then build or send the transaction. The walkthrough covers the wallet, Pot funding, execution fee and signing. Then try the swap-and-supply recipe.
Decide at execution time
Read state, branch and pass results between contract calls: if/else, loops, recursion, cross-call data flow, all evaluated against live state at inclusion.
Build with familiar tools
Write SauceScript, a subset of TypeScript, and compile it with the CLI or TypeScript SDK. Token and protocol names resolve for your chain.
Atomic by construction
An unhandled failure reverts every step. Your script sets conditions such as a minimum output; earlier approvals and cross-chain legs sit outside that rollback.
Build with your coding agent
Give your agent Sauce’s context and tools to discover, compile and simulate programs. Review the result before signing.
One language for EVM and Solana
Write once in SauceScript, compile to EVM and SVM bytecode.
Private Pots execute only with the owner’s authorization; EVM shared Pots are open to anyone.
Rebuild with the same pinned compiler, dependencies and settings, then compare bytecode. A match shows reproducibility, not safety.
A cook pays network gas and the Kitchen’s onchain execution fee in the native currency.
Install → compile → simulate → review and execute.
Use Eco’s Routes API for transfers and swaps, with supported destination calls. Requires a server-side API key.
