Withdraw With Approval

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-with-approval

Parameters

Parameter Type Description
lendborrowId string The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.
asset string Token address of the asset to withdraw.
amount string Number of tokens to be withdrawn.
to string Public address of the recipient who will receive the tokens.
from string Public address of the sender initiating the transaction.
gas string Maximum gas to be approved for the transaction.
gasPriority string Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.
enableFee boolean Flag to include a basis points fee transaction alongside the main transaction when set to true.
batchOption string The batch option to be used for the transaction.
batcherContract string The EOA address of the batcher that will be used to execute the transaction when using EIP-7702 batching.
useCustomVaults boolean A boolean flag to scope the API request.
market string The market of the asset, such as USDC or WETH. Defaults to USDC.
marketId string Specifies the market Id of any market in Morpho.
vaultAddress string Specifies the vaultAddress of any vault in Morpho.
onBehalfOf string Public address of the user on whose behalf the borrow action will be executed.
collateral 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 Status

{
  "status": 200,
  "message": "Successful response"
}

Example CURL Request

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

Conclusion

For further exploration of this API, use the Try It! feature to start a request and see the response.