The main accounts
The SDK references below use a loadedExponentVault instance named vault.
The vault account is a program-derived address (PDA). The Strategy Vaults program uses it to sign changes to Squads settings. Strategy actions must use the Squads smart account at index
0.
The price account is shared by vaults using the same Strategy Vaults program.
The manager or allocator must sign the Solana transaction with a wallet. The
Squads program uses the smart account’s authority to execute the action.
The wallet, vault PDA, and Squads smart account are separate addresses.
Where tokens are held
Deposits go into reserves controlled by the Squads smart account. When a withdrawal is filled, its payout moves to a separate escrow until the depositor claims it. This example shows a vault lending USDC on Kamino: Tokens allocated to filled withdrawals no longer count toward the vault’s AUM. The token entry reference lists the account fields for reserves and withdrawal escrow.How execution is authorized
A manager or allocator must submit a signed transaction to the Squads program to execute a strategy action. The transaction can be built with the SDK or assembled directly. Squads checks that the signer is authorized and that the action matches the policy’s allowed programs, instructions, and accounts. After the target protocol executes the action, Squads calls the Strategy Vaults program’s post-execution hook. The hook checks supported interactions, tracked assets and positions, and applicable reserve and slippage limits. If a policy check, protocol call, or post-execution check fails, the entire transaction reverts. Policies store their own signer lists. Managers must synchronize the relevant signer lists for role changes to take effect in those policies. Updating vault roles alone does not update existing policies. See Keep policy signers synchronized.Build with the SDK
The SDK provides tools for reading vault state and preparing transactions:ExponentVault: loads vault state and builds instructions for configuration, deposits, withdrawals, and governance.VaultTransactionBuilder: builds transactions for strategy actions. For supported actions, it resolves policies and accounts, prepares price updates and position registrations, and manages address lookup tables.createVaultSyncTransactionandcreateVaultSyncTransactions: build instructions for strategy actions through Squads policies. The caller assembles and sends the transactions. The plural helper supports actions that need multiple transactions.wrapInstructionsInSyncTransaction: wraps raw Solana instructions in a Squads policy call. The caller manages policy selection, hook accounts, and any required setup or price updates.
VaultTransactionBuilder uses the vault sync helpers internally. The transaction builder guide explains when to use the builder or call the helpers directly.