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.
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": {
"chain": "<chain>",
"borrower": "<borrower>",
"collateral_symbol": "<collateral_symbol>",
"debt_symbol": "<debt_symbol>",
"amount": "<amount>",
"sender": "<sender>"
},
"name": "liquidate_txn"
}
}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 |