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

# Transactions

> Send version 1 transactions with sendBuiltTransaction, configure compute and loaded-account budgets, and set global trade defaults.

Every high-level SOS-SDK builder returns a `BuiltTransaction` containing `@solana/kit` `instructions`. Use `sendBuiltTransaction` with `version: 1` to sign, send, and confirm those instructions.

## Sending Version 1 Transactions

Version 1 transactions provide a 4,096-byte envelope and do not require address lookup tables. A one-leg `option_mint_multi` fits comfortably inside a single version 1 transaction without any lookup table setup.

```ts theme={"dark"}
import {
  DEFAULT_V1_LOADED_ACCOUNTS_DATA_SIZE_LIMIT,
  sendBuiltTransaction,
} from "@epicentral/sos-sdk";
import { rpc, rpcSubscriptions } from "./config";

const signature = await sendBuiltTransaction({
  ...builtTransaction,
  rpc,
  rpcSubscriptions,
  feePayer: signer,
  version: 1,
  commitment: "confirmed",
  computeUnitLimit: 1_400_000,
  computeUnitPriceMicroLamports: 10_000,
  loadedAccountsDataSizeLimit: DEFAULT_V1_LOADED_ACCOUNTS_DATA_SIZE_LIMIT,
});
```

> [!WARNING]
>
> `sendBuiltTransaction` defaults to `version: 0` when `version` is omitted. Always pass `version: 1` explicitly.

## Resource Limits on Version 1

On version 1, compute and loaded-account limits live directly in the transaction message config instead of separate ComputeBudget instructions. An unset limit on version 1 means zero, so `sendBuiltTransaction` always writes both limits:

* **Compute unit limit**: Defaults to `1_400_000` when omitted.
* **Loaded accounts data size limit**: Defaults to `DEFAULT_V1_LOADED_ACCOUNTS_DATA_SIZE_LIMIT` (`8 MiB`), which covers the option program executable plus token and oracle programs. Pass a tighter `loadedAccountsDataSizeLimit` measured from simulation when optimizing block-cost weight.
* **Priority fee**: Pass `computeUnitPriceMicroLamports` and `sendBuiltTransaction` converts it into the version 1 total lamports fee automatically.

## The 64-Account Cap

Version 1 removes the 1,232-byte wire limit, but Solana's 64-account limit per transaction still applies. A wide multi-leg close or unwind with many active Writers can still require splitting across multiple transactions.

## Global Trade Defaults

Use `setGlobalTradeConfig` to set default slippage and compute-budget values applied across high-level builders and `sendBuiltTransaction`. Per-call arguments override global defaults.

```ts theme={"dark"}
import { setGlobalTradeConfig } from "@epicentral/sos-sdk";

setGlobalTradeConfig({
  slippageBps: 100, // 1%
  computeUnitLimit: 1_400_000,
  computeUnitPriceMicroLamports: 10_000,
});
```

## Using Your Own Transport

Because every builder returns standard `@solana/kit` `instructions`, you can bypass `sendBuiltTransaction` and submit them with your own Kit pipeline, gas sponsor, or bundle transport:

```ts theme={"dark"}
const { instructions } = await buildDepositToPositionTransaction({
  vault: vaultAddress,
  lenderTokenAccount,
  vaultTokenAccount,
  lender: lenderSigner.address,
  amount: 1_000_000_000n,
});
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.