Borrow
| 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/borrow
The request body for a /defi/v1/lendborrow/borrow
| Parameter | Type | Required | Description |
|---|---|---|---|
| lendborrowId | string | yes | The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions. |
| asset | string | yes | The token address of the asset to borrow. |
| amount | string | yes | The number of tokens to borrow. |
| interestRateMode | string | yes | Interest mode as per Aave. Use 0 for static and 1 for variable. |
| onBehalfOf | string | yes | Public address of the user on whose behalf the borrow action will be executed. |
| from | string | yes | Sender's public address. |
| gas | string | yes | Maximum gas to be approved for the transaction. |
| gasPriority | string | no | Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost. |
| enableFee | boolean | no | Flag to include a basis points fee transaction alongside the main transaction when set to true. |
| market | string | no | Asset market, such as USDC or WETH. Defaults to USDC if not provided. |
| marketId | string | yes | Specifies the market Id of any market in Morpho. |
| to | string | yes | Address of the token recipient. |
`` 200 Successful response
Updated 2 months ago
ShellNodeRubyPHPPython
xxxxxxxxxx
curl --request POST \
\
--url https://svc.blockdaemon.com/defi/v1/lendborrow/borrow \
\
--header 'accept: application/json' \
--header 'content-type: application/json'
Click Try It! to start a request and see the response here! Or choose an example:
application/json
``200
Updated 2 months ago