Repay

Process the repayment of borrowed assets to the lending protocol. Whether you’re reducing your debt or fully repaying a loan, this endpoint lets you specify the asset, amount, and repayment mode. Customizable gas parameters allow you to tailor the transaction for cost efficiency and timely execution.

Compute Unit Value: 255 (Fixed)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The request body for a /defi/v1/lendborrow/repay

string
enum

The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.

string
required

Token address of the asset to repay.

string
required

Interest rate mode as defined by Aave. Default is 1.

string
required

Public address of the user on whose behalf the repay action will be executed.

string
required

Sender's public address.

string

Maximum gas to be approved for the transaction.

string
required

Number of tokens to be repaid.

string

Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.

boolean

Flag to include a basis points fee transaction alongside the main transaction when set to true.

string

The market of the asset, such as USDC or WETH. Defaults to USDC.

string
required

Specifies the market Id of any market in Morpho.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json