Repay
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
The request body for a /defi/v1/lendborrow/repay
lendborrowId
- Type: string
- Enum: The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.
- Values:
1000100010031005120012021203120412051206120711001300130214001401140214031404
Show 18 enum values
asset
- Type: string
- Required: Yes
- Description: Token address of the asset to repay.
interestRateMode
- Type: string
- Required: Yes
- Description: Interest rate mode as defined by Aave. Default is 1.
onBehalfOf
- Type: string
- Required: Yes
- Description: Public address of the user on whose behalf the repay action will be executed.
from
- Type: string
- Required: Yes
- Description: Sender's public address.
gas
- Type: string
- Description: Maximum gas to be approved for the transaction.
amount
- Type: string
- Required: Yes
- Description: Number of tokens to be repaid.
gasPriority
- Type: string
- Description: Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.
enableFee
- Type: boolean
- Description: Flag to include a basis points fee transaction alongside the main transaction when set to true.
market
- Type: string
- Description: The market of the asset, such as USDC or WETH. Defaults to USDC.
marketId
- Type: string
- Required: Yes
- Description: Specifies the market Id of any market in Morpho.
`` 200 Successful response
Example Request
curl --request POST \
--url https://svc.blockdaemon.com/defi/v1/lendborrow/repay \
--header 'accept: application/json' \
--header 'content-type: application/json'
Response
200