prepare_kamino_supply
Prepares a Kamino deposit transaction to supply tokens. Requires wallet, mint address, and human-readable amount. Validates mint listing and resolves decimals. Must initialize user first.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wallet": "<wallet>",
"mint": "<mint>",
"amount": "<amount>"
},
"name": "prepare_kamino_supply"
}
}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. |