Repay
GET/v1/actions/lending/repay
Build calldata for repaying a loan. Identify the market via marketUid (format: lender:chainId:address). Approval transactions are automatically filtered: if the user already has sufficient allowances, permissions/permissionTxns will be empty. Pass simulate=true to include projected post-trade metrics. When on-chain debt data is available and amount covers the full debt, the API uses protocol-level max-repay mechanisms automatically. If isAll=true but amount is less than the debt, the API falls back to a partial repay to avoid reverts.
Request
Responses
- 200
- 400
Transaction calldata and approvals for repay
Validation error