Prepare repay
prepare_repayBurn synth from the wallet to reduce debt: repay(tokens). "all" repays the whole debt. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.
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": {
"owner": "<owner>",
"market": "<market>",
"tokens": "<tokens>"
},
"name": "prepare_repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. | |
| market | Yes | Market address (0x...) or symbol, e.g. NO-NVDA | |
| tokens | Yes | Synth to repay as a decimal string, or "all" |