Deposit 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/deposit-with-approval
lendborrowId
- Type: string
- Enum: The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.
1000100010031005120012021203120412051206120711001300130214001401140214031404
Show 18 enum values
asset
- Type: string
- Description: Token address of the asset to deposit.
amount
- Type: string
- Required: Yes
- Description: Number of tokens to deposit.
onBehalfOf
- Type: string
- Required: Yes
- Description: Public address of the user on whose behalf the deposit action will be executed.
from
- Type: string
- Required: Yes
- Description: Sender's public address.
gas
- Type: string
- Description: Maximum gas to be approved for the transaction.
gasPriority
- Type: string
- Description: Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.
enableFee
- Type: boolean
- Description: Flag to include a basis points fee transaction alongside the main transaction when set to true.
falsetruefalse
batchOption
- Type: string
- Enum: The batch option to be used for the transaction.
EIP-5792``EIP-7702
batcherContract
- Type: string
- Description: The EOA address of the batcher that will be used to execute the transaction when using EIP-7702 batching. If not provided, the default batcher contract for the chain will be used.
useCustomVaults
- Type: boolean
- Description: 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.
falsetruefalse
to
- Type: string
- Description: Receiver's public address.
market
- Type: string
- Description: The market of the asset, such as USDC or WETH. Defaults to USDC.
marketId
- Type: string
- Description: Specifies the market Id of any market in Morpho.
vaultAddress
- Type: string
- Description: Specifies the vaultAddress of any vault in Morpho.
collateral
- Type: boolean
- Description: Specifies the condition for depositing the token as a supply to earn the yields only or use it as collateral to borrow loan asset.
falsetruefalse
HTTP Status Codes
- 200: Successful response
Example Request
curl --request POST \
--url https://svc.blockdaemon.com/defi/v1/lendborrow/deposit-with-approval \
--header 'accept: application/json' \
--header 'content-type: application/json'
Response Format
{
"status": 200,
"message": "Updated 2 months ago"
}