prepare_kamino_repay
Prepare a transaction to repay outstanding debt in a Kamino reserve. Prevents over-repayment by clamping at debt amount, and rejects if no debt exists.
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.
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_repay"
}
}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. |