Withdraw

Process the withdrawal of your deposited assets from the lending protocol. Specify the asset, amount, and recipient address, and use customizable gas parameters to ensure that the withdrawal is executed efficiently. This endpoint allows you to retrieve funds when needed while managing your overall position.

Compute Unit Value: 205 (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/withdraw

string
enum

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

string

Token address of the asset to withdraw.

string
required

Number of tokens to be withdrawn.

string
required

Public address of the recipient who will receive the tokens.

string
required

Public address of the sender initiating the transaction.

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.

boolean

A boolean flag to scope the API request. If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools.

string

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

string

Specifies the market Id of any market in Morpho.

string

Specifies the vaultAddress of any vault in Morpho.

string

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

boolean

Specifies the condition for depositing the token as a supply to earn the yields only or use it as collateral to borrow loan asset.

Response

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