prepare_kamino_repay
Builds a Kamino repay transaction to reduce outstanding debt in a reserve. Rejects if no debt exists, and over-repayment safely caps at owed amount.
Instructions
Build a Kamino repay tx — pays down outstanding debt in the named reserve. Refuses with a clear error if the wallet has no debt in the reserve. The on-chain program clamps repayment at outstanding debt, so over-repaying just doesn't burn the excess (no funds lost). DURABLE NONCE REQUIRED + same blind-sign treatment as prepare_kamino_supply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Solana base58 wallet — must already have outstanding debt in the named reserve. | |
| mint | Yes | Base58 Solana mainnet address (ed25519 pubkey, 43 or 44 chars). | |
| amount | Yes | Human-readable amount to repay. The on-chain program clamps repayment at outstanding debt; over-repaying just doesn't burn the excess (no funds lost). Refuses with a clear error if the wallet has no debt in the reserve. |