Add Liquidity

Constructs a transaction payload for adding liquidity to a specified market. The payload includes chain, address, gas, and function data, enabling users to deposit tokens and expand yield opportunities.

💡

Compute Unit Value: 95 (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/yieldaggregator/addliquidity

The request body for a /defi/v1/yieldaggregator/addliquidity

string
enum

A unique identifier to route the transaction to the appropriate yield aggregator instance. This parameter is optional if a default aggregator is used.

Allowed:
string
required

The blockchain address of the liquidity pool or market where tokens will be deposited. This parameter directs the transaction to the correct pool within the yield aggregator.

string
required

The address or identifier of the token being deposited. This parameter specifies the underlying asset that will be added as liquidity.

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

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

Optional amount of principal tokens (PT) to deposit, specified in the token's smallest denomination (base units). Required by certain protocols that accept PT alongside the main asset. Example: 1 PT token (18 decimals) = "1000000000000000000".

string

Specifies the maximum allowable percentage deviation between the expected and executed price during the deposit. This tolerance helps protect against unfavorable price movements during the transaction. Valid range: 0 to 100 (e.g., 1 = up to 1% slippage).

boolean

When set to true, the transaction is executed to avoid any change in the asset's price, resulting in the user receiving both LP and YT tokens, though the LP amount will be lower than in standard mode.

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 desired gas fee priority (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.

Response

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