| 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/withdraw

#### lendborrowId

- **Type:** string  
- **Enum:** The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.  
 1000100010031005120012021203120412051206120711001300130214001401140214031404

#### asset

- **Type:** string  
- Token address of the asset to withdraw.

#### amount

- **Type:** string  
- **Required**  
- Number of tokens to be withdrawn.

#### to

- **Type:** string  
- **Required**  
- Public address of the recipient who will receive the tokens.

#### from

- **Type:** string  
- **Required**  
- Public address of the sender initiating the transaction.

#### gas

- **Type:** string  
- Maximum gas to be approved for the transaction.

#### gasPriority

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

#### enableFee

- **Type:** boolean  
- Flag to include a basis points fee transaction alongside the main transaction when set to true.

#### useCustomVaults

- **Type:** 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.

#### market

- **Type:** string  
- The market of the asset, such as USDC or WETH. Defaults to USDC.

#### marketId

- **Type:** string  
- Specifies the market Id of any market in Morpho.

#### vaultAddress

- **Type:** string  
- Specifies the vaultAddress of any vault in Morpho.

#### onBehalfOf

- **Type:** string  
- Public address of the user on whose behalf the borrow action will be executed.

#### collateral

- **Type:** 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

```  
200      Successful response
```

### Example Request using curl

```shell
curl --request POST \
     --url https://svc.blockdaemon.com/defi/v1/lendborrow/withdraw \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
```
