Choose the actions
Use the relevant integration page to choose an action and its inputs. The examples below deposit 1 SOL into Kamino’s SOL/BTC market, identified asKaminoMarket.MAIN in the SDK. They assume the vault already has a Kamino lending account and a tracked SOL position there.
Execute the action
Choose whether the SDK or the application assembles and sends the transactions. Both APIs take the same actions and find a matching installed policy.- Transaction builder
- Sync helpers
Use the transaction builder to let the SDK assemble and execute the sequence, including supported position registrations and required refreshes.
build() returns an execution plan. Its ordered transactionSets contain the instructions, additional signers, and lookup table addresses for each transaction.Call the plan’s send method to handle lookup tables, simulate, and submit the transaction sets in order. Use its simulate method for a dry run.Withdraw and rebalance
To withdraw 0.5 SOL from the Kamino lending position, replace the deposit action with:addActions calls for the two steps. Each call defines a separate policy execution. With the sync helpers, prepare and execute the withdrawal before preparing the allocation.
Build transactions manually
To build transactions without the Exponent SDK, construct the Squads execution instruction directly:- Build the protocol instructions with the vault’s Squads smart account as the authority.
- Package the vault-signed instructions in
execute_transaction_sync_v2, using an installedProgramInteractionpolicy and smart-account index0. Include the authorized signer, matching policy constraint indices, and the policy’s hook accounts. - Keep required setup and price or protocol refresh instructions at the top level, around the Squads instruction. Include the accounts needed by vault validation to check tracked positions and reserve limits.