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.
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" |