prepare_kamino_supply
Build a deposit transaction to supply assets to Kamino. Accepts human-readable amounts (e.g., '100' for USDC) and validates wallet initialization and mint listing.
Instructions
Build a Kamino deposit (supply) tx. Refuses if the wallet doesn't have Kamino userMetadata + obligation already initialized — run prepare_kamino_init_user first. Validates that the mint is listed on Kamino's main market; resolves decimals from the reserve's mint metadata so callers pass human amounts ("100" = 100 USDC, "0.5" = 0.5 SOL). DURABLE NONCE REQUIRED + same Ledger blind-sign treatment as prepare_kamino_init_user. The returned tx packs [computeBudget, ATA setup if needed, reserve refresh, obligation refresh, deposit, cleanup] under v0 + Kamino's market ALTs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Solana base58 wallet — funds the deposit + tx fee. Must have already run prepare_kamino_init_user. | |
| mint | Yes | Base58 SPL mint address of the asset to supply. Must be listed on Kamino's main market — refuses otherwise. Common Kamino reserves: USDC, USDT, SOL, JitoSOL, mSOL, JLP, JUP, BONK. | |
| amount | Yes | Human-readable amount to supply (e.g. "100" for 100 USDC, "0.5" for 0.5 SOL). Decimals are resolved from the reserve's mint metadata; pass the human value, not raw base units. |