> ## 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: Arguments

> Arguments: 2 exports of the svm module of @eco-incorp/sauce, including encodeArgSlot, encodePayloadArgs.

`@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/args.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>

### `encodeArgSlot`

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

Encodes one runtime value against its layout slot (scalar → 32B BE word, bytes → raw).

```typescript theme={null}
export declare function encodeArgSlot(slot: ArgsLayoutSlot, value: ArgValue): Uint8Array;
```

### `encodePayloadArgs`

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

Encodes the full payload-args tail against the caller-supplied `ArgsLayout`: slot i's
bytes land at exactly layout.slots\[i].offset, back to back - the compiled
prologue's baked SLICE offsets leave no room for drift, so any layout/value
mismatch throws instead of producing silently shifted reads.

```typescript theme={null}
export declare function encodePayloadArgs(layout: ArgsLayout, values: readonly ArgValue[]): Uint8Array;
```
