liquidate_txn
Build unsigned transactions to liquidate an undercollateralized position by repaying debt and seizing collateral at a bonus. Returns base64-encoded transactions for signing.
Instructions
Build unsigned transactions to liquidate an undercollateralized position. The liquidator repays part of the debt and receives collateral at a bonus. Returns base64-encoded transactions for signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Blockchain network | |
| amount | Yes | Amount of debt to repay in human-readable units | |
| sender | Yes | Liquidator wallet address | |
| borrower | Yes | Address of the borrower to liquidate | |
| debt_symbol | Yes | Debt token to repay | |
| collateral_symbol | Yes | Collateral token to seize |