prepare_kamino_withdraw
Withdraw tokens from a previously-supplied Kamino reserve. Refuses if no deposit exists and is health-factor gated to prevent under-collateralization.
Instructions
Build a Kamino withdraw tx — pulls liquidity out of a previously-supplied reserve. Refuses with a clear error if the wallet has no deposit in the named reserve. Health-factor gated on-chain: withdraws that would leave the obligation under-collateralized for outstanding debt revert (caught by the simulation gate). DURABLE NONCE REQUIRED + same blind-sign treatment as prepare_kamino_supply.
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_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Solana base58 wallet — must already have a Kamino deposit in the named reserve. | |
| mint | Yes | Base58 Solana mainnet address (ed25519 pubkey, 43 or 44 chars). | |
| amount | Yes | Human-readable amount to withdraw. The reserve must have an active deposit from this wallet — the builder refuses with a clear error otherwise. Health-factor gated on-chain: a withdraw that would leave the obligation under-collateralized for outstanding debt reverts. |