SAUCE SDK

Transactions that think.

Transactions that think.

Transactions that think.

Sauce SDK turns blockchain transactions into fully executing programs across EVM and Solana. Your logic runs inside the transaction, against live market conditions, and delivers the outcome you defined (or reverts entirely).

Sauce SDK turns blockchain transactions into fully executing programs across EVM and Solana. Your logic runs inside the transaction, against live market conditions, and delivers the outcome you defined (or reverts entirely).

$npm install --save-exact @eco-incorp/sauce@0.99.16

Sauce enables programmable, failsafe execution for onchain money.

Sauce is Eco’s transaction runtime for EVM and Solana. Sauce transactions read live onchain state, branch and compose contract calls atomically—choosing the best path in real time, with all-or-nothing execution against the rules you write.

Sauce enables programmable, failsafe execution for onchain money.

Sauce is Eco’s transaction runtime for EVM and Solana. Sauce transactions read live onchain state, branch and compose contract calls atomically—choosing the best path in real time, with all-or-nothing execution against the rules you write.

Sauce enables programmable, failsafe execution for onchain money.

Sauce is Eco’s transaction runtime for EVM and Solana. Sauce transactions read live onchain state, branch and compose contract calls atomically—choosing the best path in real time, with all-or-nothing execution against the rules you write.

See an example →

See an example →

How Sauce works

How Sauce works

How Sauce works

OFFCHAIN ORCHESTRATIONSEPARATE STEPSSAUCEONE PROGRAMQuoteDecideSignSubmitWait for inclusionExecuteSTATE CAN CHANGE IN BETWEENSignSubmitWait for inclusionRead / quoteDecideExecuteONE TRANSACTION

Get started in < 2 minutes

Compile your first Sauce program

Compile your first Sauce program

Compile your first Sauce program

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.

npm init -y
npm pkg set type=module
npm install --save-exact @eco-incorp/sauce@0.99.16
function main(to: Address, amount: Uint256) {
require(pot.USDC >= amount, "not enough USDC");
USDC.transfer(to, amount);
}
npx sauce compile pay.sauce.ts --chain base
const fee = quote500 >= quote3000 ? 500 : 3000;
require((fee == 500 ? quote500 : quote3000) >= minUsdc, "best quote below minUsdc");
const pool = UniswapV3.Factory.getPool(WETH, USDC, fee);
const usdcBefore = pot.USDC;
uniswapV3(pool, WETH, USDC, amount, 0, minUsdc, ctx.self());
const received = pot.USDC - usdcBefore;
USDC.approve(AaveV3.Pool, received);
AaveV3.Pool.supply(USDC, received, beneficiary, 0);
require(pot.USDC == usdcBefore, "supply did not take all the USDC received");

Why Use Sauce

Why Use Sauce

Why Use Sauce

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.

const fee = quote500 >= quote3000 ? 500 : 3000;
require((fee == 500 ? quote500 : quote3000) >= minUsdc, "best quote below minUsdc");
const pool = UniswapV3.Factory.getPool(WETH, USDC, fee);
const usdcBefore = pot.USDC;
uniswapV3(pool, WETH, USDC, amount, 0, minUsdc, ctx.self());
const received = pot.USDC - usdcBefore;
USDC.approve(AaveV3.Pool, received);
AaveV3.Pool.supply(USDC, received, beneficiary, 0);
require(pot.USDC == usdcBefore, "supply did not take all the USDC received");
npx sauce compile pay.sauce.ts --chain base
// One transaction: if any require fails, every step reverts together.
require(amount > 0, "amount is zero");
require(pot.WETH >= amount, "not enough WETH in the Pot");
uniswapV3(pool, WETH, USDC, amount, 0, minUsdc, ctx.self());
const received = pot.USDC - usdcBefore;
USDC.approve(AaveV3.Pool, received);
AaveV3.Pool.supply(USDC, received, beneficiary, 0);
require(pot.USDC == usdcBefore, "supply did not take all the USDC received");
# Give your coding agent Sauce's context and tools.
# Setup guide and MCP reference:
# docs.eco.com/get-started/build-with-agents
#
# (placeholder: agent setup snippet to come)
npx sauce compile pay.sauce.ts --chain base

Trust & Security

Trust & Security

Trust & Security

Control through your Pot.

Control through your Pot.

Control through your Pot.

Private Pots execute only with the owner’s authorization; EVM shared Pots are open to anyone.

Byte-verifiable output.

Byte-verifiable output.

Byte-verifiable output.

Rebuild with the same pinned compiler, dependencies and settings, then compare bytecode. A match shows reproducibility, not safety.

Know the execution costs.

Know the execution costs.

Know the execution costs.

A cook pays network gas and the Kitchen’s onchain execution fee in the native currency.

Start building with Sauce

Start building with Sauce

Start building with Sauce

Write your own program.

Write your own program.

Write your own program.

Install → compile → simulate → review and execute.

Integrate hosted routing.

Integrate hosted routing.

Integrate hosted routing.

Use Eco’s Routes API for transfers and swaps, with supported destination calls. Requires a server-side API key.

Need a solution?

Reach out and talk to us about using Sauce in your product.

Need a solution?

Reach out and talk to us about using Sauce in your product.

Need a solution?

Reach out and talk to us about using Sauce in your product.

Frequently asked questions

Frequently asked questions

Frequently asked questions

Full Sauce SDK and Skills support is available on Arc, Base, Ethereum and Solana today. More networks will be added very soon, and are available for early access by request.

The gas usage depends on what the transaction does. Check this guide on how to estimate gas usage.

The Sauce runtime is currently closed-source, and the SDK is open source. The repo and license can be found here and audit reports can be found here.

You can reach out to us via Support or open an issue in the Sauce GitHub repo.

Full Sauce SDK and Skills support is available on Arc, Base, Ethereum and Solana today. More networks will be added very soon, and are available for early access by request.

The gas usage depends on what the transaction does. Check this guide on how to estimate gas usage.

The Sauce runtime is currently closed-source, and the SDK is open source. The repo and license can be found here and audit reports can be found here.

You can reach out to us via Support or open an issue in the Sauce GitHub repo.

Full Sauce SDK and Skills support is available on Arc, Base, Ethereum and Solana today. More networks will be added very soon, and are available for early access by request.

The gas usage depends on what the transaction does. Check this guide on how to estimate gas usage.

The Sauce runtime is currently closed-source, and the SDK is open source. The repo and license can be found here and audit reports can be found here.

You can reach out to us via Support or open an issue in the Sauce GitHub repo.

Full Sauce SDK and Skills support is available on Arc, Base, Ethereum and Solana today. More networks will be added very soon, and are available for early access by request.

The gas usage depends on what the transaction does. Check this guide on how to estimate gas usage.

The Sauce runtime is currently closed-source, and the SDK is open source. The repo and license can be found here and audit reports can be found here.

You can reach out to us via Support or open an issue in the Sauce GitHub repo.

Get email updates on Eco and

everything stablecoins

THANKS FOR SUBSCRIBING

© 2026 Eco. All Rights Reserved.

Get email updates on Eco and

everything stablecoins

THANKS FOR SUBSCRIBING

© 2026 Eco. All Rights Reserved.

Get email updates on Eco and

everything stablecoins

THANKS FOR SUBSCRIBING

© 2026 Eco. All Rights Reserved.