Skip to Content
Dashboard
API ReferenceLiquidity poolsWithdraw Liquidity Cross-Chain (Enso) POST

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.

POST
/api/v1/liquidity/withdraw/cross-chain

Authorization

x-api-key
headerx-api-key<token>

Request Body

application/json
  1. body
liquidityProvider?string

Optional provider for withdrawing from a liquidity pool. If not provided, Uniswap v3 will be used.

Value in"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*string

The wallet address (in hexadecimal format) that owns the liquidity position.

toAddress*string

The address (in hexadecimal format) that will receive the output tokens.

chainId*number

The 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*string

The NFT token ID representing the liquidity position.

tokenOut*string

The address (in hexadecimal format) of the token to receive after withdrawing and swapping.

percentage*number

Percentage of the liquidity position to withdraw (e.g., 100 for full withdrawal, 50 for half).

Range0.01 <= value <= 100
transactionFeePercent?number

Percentage fee applied to the transaction (e.g., 5 for 5%).

Range0 <= value <= 99.99
Default0
extraFee?

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*number

The 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

Response Body

Data about the cross-chain withdraw

application/json
  1. response
operation*