repay_on_behalf_txn
Create unsigned transactions to repay a DorkFi borrower's debt on their behalf. The sender pays the tokens and gets base64-encoded transactions to sign.
Instructions
Build unsigned transactions to repay another user's borrowed tokens to a DorkFi lending market. The sender pays the debt on behalf of the borrower. Returns base64-encoded transactions for signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Blockchain network | |
| amount | Yes | Amount in human-readable units | |
| sender | Yes | Repayer wallet address (the one paying) | |
| symbol | Yes | Token symbol to repay | |
| borrower | Yes | Address of the borrower whose debt is being repaid |