Choose an execution API
Use the API that matches how much control you want over execution:In the current SDK, omitted-
reserve Kamino Vault withdraws are the only Kamino Vault actions that can expand into multiple VaultSyncTransactionResult values. Other Kamino Vault calls still return one result.Transaction structure
createVaultSyncTransaction returns one low-level sync transaction result with four parts:
createVaultSyncTransactions returns the same structure in an array. Send those results sequentially in the order returned.Deposit
kaminoVaultAction.deposit moves the vault’s deposit token ATA into a Kamino Vault and mints Kamino Vault shares back to the managed vault.
Parameters
Withdraw
kaminoVaultAction.withdraw burns Kamino Vault shares from the managed vault and withdraws the underlying deposit token back to the managed vault ATA.
Parameters
reserve is not the Kamino Vault itself. A Kamino Vault has its own token_vault and shares_mint, and it can allocate capital across one or more underlying Kamino Lend reserves. The raw invested-withdraw path is reserve-specific, so reserve overrides which underlying reserve leg to unwind.Related pages
- Kamino Farm instructions covers staking Kamino Vault shares into a Kamino Farm.
- VaultTransactionBuilder covers multi-step flows and automatic sequential sending.
- Policy Builders covers
createKaminoVaultPolicy.