Create Swap Liquidity (Enso)
This endpoint creates liquidity for a swap liquidity pool through an Enso bundle: the swaps and the deposit are chained on-chain, so the deposit consumes the exact runtime swap outputs instead of worst-case estimates. Platform fees and gas fees are always charged in `tokenIn`.
x-api-keyx-api-key<token>application/json- body
liquidityProvider?stringOptional provider for entering a liquidity pool. If not provided, Uniswap v3 will be used.
"UNISWAP_V3""PANCAKESWAP_V3""UNISWAP_V4"walletAddress*stringThe wallet address (in hexadecimal format) that will provide the liquidity.
toAddress*stringThe address (in hexadecimal format) receiving the token that represents the provided liquidity.
chainId*numberThe blockchain network where the liquidity will be provided. Supported EVM chains:
- Arbitrum One: 42161
- Avalanche: 43114
- Base: 8453
- BNB Smart Chain: 56
- Ethereum: 1
- Gnosis: 100
- OP Mainnet: 10
- Polygon: 137
- X Layer Mainnet: 196
- Robinhood Chain: 4663
transactionFeePercent?numberPercentage fee applied to the transaction (e.g., 5 for 5%).
0 <= value <= 99.990gasFeePaymentMethod*stringDefines how the gas fee will be paid: "ADD_TO_AMOUNT" charges it on top of amountIn (the wallet must hold amountIn + fees + gas), while "DEDUCT_FROM_AMOUNT" subtracts it from amountIn before providing liquidity. On this route, platform fees and gas fees are always charged in tokenIn.
"ADD_TO_AMOUNT""DEDUCT_FROM_AMOUNT"tokenIn*stringThe address (in hexadecimal format) of the token being swapped from.
amountIn*stringThe amount of token being swapped from, expressed as a decimal string.
token0*stringThe address (in hexadecimal format) of one of the tokens of the pool.
token1*stringThe address (in hexadecimal format) of the other token of the pool.
poolFeePercent*numberDefines the fee earned by providing liquidity. Lower values are recommended for more stable tokens, while higher values are better suited for volatile assets. The values allowed depend on the provider, so check the provider docs too to know which fee tiers are allowed.
0 < value <= 100tickSpacing?|Tick spacing of the pool (tickSpacing from the pool list). Part of the pool's identity where the fee alone does not fix it: required for UNISWAP_V4, ignored by the providers that read it from the pool.
0 < value <= 9007199254740991poolId?|Optional id of the pool from the pool list. When sent, the request fails with POOL_ID_MISMATCH unless the pool it resolves to is this one.
^[0-9]+-0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$stake?|PANCAKESWAP_V3 only: also stake the new position in the pool's MasterChefV3 farm, in the same operation, so it earns CAKE from the start. The wallet approves the staker contract on the position manager once: on the pool's network that approval is part of this operation; coming from another network it is a second, sponsored operation returned as stakeApprovalUserOperation. Ignored when the pool has no live farm or toAddress is not walletAddress. The response's staked tells whether the position will be staked.
minPrice*numberMinimum price the liquidity will be active. If the price goes below this, the liquidity won't be active and will generate no revenues. This will allow to concentrate the liquidity to a price range, thus enhancing the gains. Price is always p = token1 / token0
0 <= valuemaxPrice*numberMaximum price the liquidity will be active. If the price goes above this, the liquidity won't be active and will generate no revenues. This will allow to concentrate the liquidity to a price range, thus enhancing the gains. Price is always p = token1 / token0
0 <= valueslippage?numberOptional parameter controlling the maximum deviation allowed of the expected price of a trade and the actual price at which the trade is executed, with a minimum value of 0.5 and a maximum value of 99, default is 0.5, where 1 unit equals 1%.
0 <= value <= 990.5extraFee?Optional extra fee that can be charged in addition to the transaction fee (configured in the dashboard or via transactionFeePercent). This extra fee is deducted from the input token and sent to the specified toAddress, allowing you to define a custom recipient for this additional charge.
metadata?Custom metadata. Key-value pairs with string values. Max 1KB size.
destinationToken?stringCross-chain only. Which of the pool pair the bridge should deliver, on chainIdOut. For UNISWAP_V3 it is optional: supplying it enables a second route for the entry — the destination side runs as one atomic batch instead of a bundle — used automatically when the primary route cannot be quoted; without it, only the primary route is attempted. For PANCAKESWAP_V3 and UNISWAP_V4 the atomic batch is the only route, so it is required, and it must be an ERC-20 (a native pool currency is bought by the batch).
chainIdOut?numberThe blockchain network of the pool, when different from chainId. The entry is then bridged inside the same bundle and the position is minted on this chain — still one signature, with tokenIn, platform fees and gas all staying on chainId. Only routes with a configured bridge lane are accepted; token0/token1 must be addresses on this chain.
Data about the creation of the liquidity
application/json- response
operation*