> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# svm: Quote simulation

> Quote simulation: 2 exports of the svm module of @eco-incorp/sauce, including quoteViaSimulation, QuoteViaSimulationInput.

`@eco-incorp/sauce/svm` is the Solana side: staging a program through the kitchen, resolving accounts against the compiler's account manifest, building and sending transactions, and verifying settle programs. Solana execution goes through the Kitchen client here; the SDK's SVM route helpers emit a legacy instruction that the released engine does not accept.

```typescript theme={null}
import { createSauceSvmClient } from "@eco-incorp/sauce/svm";
```

This page covers `sdk/dist/svm/quoteSim.d.ts`.

<Note>
  Generated from the type declarations shipped in `@eco-incorp/sauce` 0.99.4. Each entry shows the package authors' JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see [architecture and deployments](/programmable-transactions/sauce/architecture-and-deployments).
</Note>

### `quoteViaSimulation`

*Function* · `sdk/dist/svm/quoteSim.d.ts`

Simulates `swapIx` as a standalone single-instruction transaction and
returns the outAta token-balance delta (post − pre) as the quoted output.
See the module doc for the staleness contract.

```typescript theme={null}
export declare function quoteViaSimulation({ rpc, swapIx, payer, outAta, }: QuoteViaSimulationInput): Promise<bigint>;
```

### `QuoteViaSimulationInput`

*Interface* · `sdk/dist/svm/quoteSim.d.ts`

```typescript theme={null}
export interface QuoteViaSimulationInput {
    rpc: Rpc<SimulateTransactionApi & GetAccountInfoApi>;
    swapIx: Instruction;
    payer: TransactionSigner;
    outAta: Address;
}
```
