Skip to Content
Dashboard

Add Liquidity To An Existing Position On Another Chain

Adds liquidity to a position that lives on a different chain than the funds, in a single signature. The user signs one operation on `chainId`; the bridge delivers `destinationToken` on `chainIdOut` and, in the same destination transaction, splits it at the position range ratio and grows the position. The destination side is atomic: if any part of it fails, nothing settles and the deposit is refunded on `chainId`. Platform fees and gas fees are always charged in `tokenIn`.

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

Authorization

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

Request Body

application/json
  1. body
liquidityProvider?string

Optional provider of the position. If neither this nor nftAddress is 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 will provide the liquidity.

chainId*number

The 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?number

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

Range0 <= value <= 99.99
Default0
gasFeePaymentMethod*string

Defines how the fee will be paid: "ADD_TO_AMOUNT" adds it to the input amount, while "DEDUCT_FROM_AMOUNT" subtracts it from the input amount.

Value in"ADD_TO_AMOUNT""DEDUCT_FROM_AMOUNT"
tokenIn*string

The address (in hexadecimal format) of the token being swapped from.

amountIn*string

The amount of token being swapped from, expressed as a decimal string.

tokenId*string

The NFT token ID of the existing liquidity position to add liquidity to.

slippage?number

Optional 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%.

Range0 <= value <= 99
Default0.5
extraFee?

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.

chainIdOut*number

The blockchain network the position lives on. Must differ from chainId, and only routes with a configured bridge lane are accepted. 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
destinationToken*string

The address (in hexadecimal format), on chainIdOut, of the token bridged into the pool. Must be one of the pool pair, since the top-up spends it directly against the position: part is swapped into the other side at the position range ratio, and whatever is left over is returned to the wallet on chainIdOut.

Response Body

Data about the liquidity added to the position

application/json
  1. response
operation*