How to repay a loan
Last updated
Last updated
In this section, you'll learn how to request ready-to-use transaction data (bytecode) for repaying a loan.
Use this when you want to work with a specific lending protocol.
Request Transaction Data Fetch specific protocol information using:
Required Parameters:
action
Type of operation
repay
chainId
Blockchain network ID
137
(Polygon)
protocol
Protocol name
aave
amount
Repay amount
10000000
(with decimals)
asset
Asset to repay
USDC
loanId
ID of the loan
123456
Example Request:
Response:
Our API returns the transaction data as an array of objects. Each object contains to
, value
, and data
fields.