---
name: exponent-sdk
description: Use Exponent's public SDK and documentation to build yield-market integrations and Strategy Vault setup, allocation, governance, and withdrawal workflows on Solana.
---

# Build with Exponent

Use this guide to find the right workflow and its execution contract. Assume familiarity with Solana accounts, instructions, signers, and token units.

## Find the relevant guide

Start with the [documentation index](https://docs.exponent.finance/llms.txt). Fetch the linked Markdown pages for the task; the aggregate [LLM file](https://docs.exponent.finance/llms-full.txt) may cover only the default documentation section.

| Task | Read |
| --- | --- |
| Choose a yield-market SDK | [SDK selection](https://docs.exponent.finance/developers/choosing-your-sdk) |
| Understand Strategy Vaults | [Start here](https://docs.exponent.finance/developer-strategy-vaults/learn) |
| Create and configure a vault | [Create a vault](https://docs.exponent.finance/developer-strategy-vaults/create-vault), [assets and prices](https://docs.exponent.finance/developer-strategy-vaults/configure-assets-and-prices), [policies](https://docs.exponent.finance/developer-strategy-vaults/configure-policies) |
| Allocate, manage, or exit a protocol position | [Supported integrations](https://docs.exponent.finance/developer-strategy-vaults/supported-integrations), then the protocol guide |
| Maintain valuation | [Refresh AUM](https://docs.exponent.finance/developer-strategy-vaults/refresh-aum) |
| Process withdrawals | [Fill withdrawal requests](https://docs.exponent.finance/developer-strategy-vaults/fill-withdrawal-requests) |
| Change a funded vault | [Propose a vault change](https://docs.exponent.finance/developer-strategy-vaults/typescript/governance/overview) |

`ExponentVault` represents a Strategy Vault. `Vault` represents an Exponent Core yield vault. Use `MarketThree` for CLMM and `Orderbook` for Order Book integrations. Import public APIs from `@exponent-labs/exponent-sdk`; confirm signatures and exports before generating code.

## Choose an execution path

- **Transaction builder:** create a `VaultTransactionBuilder`, then call `build()` for a plan containing ordered `transactionSets`, instructions, additional signers, and lookup table addresses. Building submits nothing. `plan.send(...)` signs, sends, and confirms the sequence with supported preparation and refresh scheduling. Read the [builder contract](https://docs.exponent.finance/developer-strategy-vaults/vault-transaction-builder).
- **Sync helpers:** `createVaultSyncTransactions()` returns ordered, unsubmitted instruction bundles: `setupInstructions`, `preInstructions`, `instruction`, `postInstructions`, `signers`, and `addressLookupTableAddresses`. The caller handles stale AUM, same-slot price updates, protocol refresh ordering, lookup table loading, signing, submission, and confirmation. Concatenating the fields is not a complete execution plan. Read the [sync contract](https://docs.exponent.finance/developer-strategy-vaults/reference/sync-helpers).
- **Manual construction:** use the [manual transaction guide](https://docs.exponent.finance/developer-strategy-vaults/reference/vault-sync-transactions) for Squads execution and its caller-required accounts. Protocol guides identify manual-only actions and adapter restrictions; Loopscale also has a dedicated response-client path.

## Preserve the vault's requirements

- Match each action and signer to an installed policy, including permissions for required initialization. Leave `spendingLimits` unset. Omitted policy filters can widen access; check the integration's scope semantics.
- Configure token accounts, tracked positions, and valuation paths before using sync examples with `autoManagePositions: false`. This flag does not disable all preparation. Do not assume the builder can initialize every protocol position.
- Keep the reserve target when allocating. Account for tracked strategy positions as well as deposit assets. Use the specified atomic units; token amounts, LP shares, and scaled farm shares are distinct.
- Refresh AUM frequently and when required before operations. Price updates must share the slot of the AUM calculation that uses them. For transaction size or compute constraints, follow the refresh guide's ordered-bundle approach.
- Preserve generated position addresses and signers, lookup tables, ordered multiple results, and protocol-specific refresh ordering. Keep slippage-checked actions in separate steps where required. Co-sign only Loopscale transactions flagged for it.
- Use the documented governance path for changes that require a proposal. Preserve voting, timelock, withdrawal, execution-account, and signer-synchronization requirements.

Use the runnable [allocation-and-exit](https://docs.exponent.finance/developer-strategy-vaults/examples/allocate-and-exit) and [queued-withdrawal](https://docs.exponent.finance/developer-strategy-vaults/examples/queued-withdrawal) examples for complete scripts.
