Withdraw Liquidity Cross-Chain (Enso)
Withdraws a liquidity position and delivers the proceeds on another network in a single signature: the position is redeemed and consolidated on its own network, then bridged, and the destination leg delivers `tokenOut` to `toAddress`. Platform fees and gas are charged on the position's network.
x-api-keyx-api-key<token>application/json- body
liquidityProvider?stringOptional provider for withdrawing from a liquidity pool. If not provided, Uniswap v3 will be used.
"UNISWAP_V3""PANCAKESWAP_V3""UNISWAP_V4"nftAddress?|Optional position manager (NFT contract) of the position: the nftAddress returned when the position was created. It selects the liquidity provider; if liquidityProvider is also sent, both must name the same provider. Without either, Uniswap V3 is used.
walletAddress*stringThe wallet address (in hexadecimal format) that owns the liquidity position.
toAddress*stringThe address (in hexadecimal format) that will receive the output tokens.
chainId*numberThe blockchain network where the liquidity position exists. 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
tokenId*stringThe NFT token ID representing the liquidity position.
tokenOut*stringThe address (in hexadecimal format) of the token to receive after withdrawing and swapping.
percentage*numberPercentage of the liquidity position to withdraw (e.g., 100 for full withdrawal, 50 for half).
0.01 <= value <= 100transactionFeePercent?numberPercentage fee applied to the transaction (e.g., 5 for 5%).
0 <= value <= 99.990extraFee?Optional extra fee that can be charged in addition to the transaction fee. This extra fee is deducted from the output token and sent to the specified toAddress.
metadata?Custom metadata. Key-value pairs with string values. Max 1KB size.
chainIdOut*numberThe blockchain network where the proceeds should land, when different from the position's own network. The exit is bridged inside the same signature; platform fees and gas are charged on the position's network. 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
Data about the cross-chain withdraw
application/json- response
operation*