Borrow

Initiates a borrowing transaction for a specified amount of tokens from supported lending markets (Aave V2/V3, Compound V2/V3), allowing configuration of asset, amount, interest rate mode, on-behalf-of address, and gas parameters for an optimized borrowing process.

Compute Unit Value: 225 (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/borrow

string
enum

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

string
required

The token address of the asset to borrow.

string
required

The number of tokens to borrow.

string
required

Interest mode as per Aave. Use 0 for static and 1 for variable.

string
required

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

string
required

Sender's public address.

string

Maximum gas to be approved for the transaction.

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

Asset market, such as USDC or WETH. Defaults to USDC if not provided.

string
required

Specifies the market Id of any market in Morpho.

string
required

Address of the token recipient.

Response

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