Deposit

Facilitate the deposit of assets into lending protocols by specifying the asset, deposit amount, and optionally, a recipient address. This endpoint is designed for users to start earning interest or to use their deposited collateral for borrowing. Gas optimization settings ensure that the deposit transaction is both efficient and cost‐effective.

💡

Compute Unit Value: 230 (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/deposit

The request body for a /defi/v1/lendborrow/deposit

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 deposit.

string
required

Number of tokens, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: 1 WETH (18 decimals) = "1000000000000000000"; 1 USDC (6 decimals) = "1000000".

string
required

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

string
required

Blockchain address of the sender. For EVM chains, use a checksummed hex address (e.g., 0xABCDEF...). This address must hold sufficient balance and will sign the transaction.

string

Maximum number of gas units to allocate for the transaction, as an integer string (e.g., '200000'). If omitted, gas is estimated automatically. Note: this is gas units, not wei or gwei.

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
enum

Transaction batching standard to use. Supported values: 'EIP-5792' (wallet-level batching via wallet_sendCalls) or 'EIP-7702' (EOA code delegation via batcherContract). Requires batcherContract when using EIP-7702.

Allowed:
string

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.

boolean

When true, dry-runs the transaction batch via eth_simulateV1 and returns a simulate field with status and error on each transaction.

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

Blockchain address of the recipient. For EVM chains, use a checksummed hex address (e.g., 0xABCDEF...).

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.

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