Remove Liquidity

Facilitates the withdrawal of liquidity from cross-chain bridges with customizable gas settings and amount specifications.

💡

Compute Unit Value: 115 (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/dex/removeliquidity

The request body for a /defi/v1/dex/removeliquidity

string
enum

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

string
required

Address of the first token being removed.

string
required

Address of the second token being removed.

string
required

Amount of liquidity pool (LP) tokens to remove, specified in the token's smallest denomination (base units). Examples: 1 LP token (18 decimals) = "1000000000000000000".

string
required

Minimum acceptable amount of token A in the token's smallest denomination (base units). Provides slippage protection — the transaction reverts if the deposited amount falls below this value. Set to "0" to disable slippage protection.

string
required

Minimum acceptable amount of token B in the token's smallest denomination (base units). Provides slippage protection — the transaction reverts if the deposited amount falls below this value. Set to "0" to disable slippage protection.

string
required

Deadline for the transaction to be executed (UNIX Timestamp).

string
required

Address of the recipient of the token.

string
required

Address of the sender of the token.

string
required

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 priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.

string

Percentage of total value allowed for slippage. Default is 1. Range: 0 <= slippage <= 100.

boolean

Flag to include a basis points fee transaction alongside the main transaction when set to true.

string
required

The token ID for Uniswap V3 liquidity position.

string

Maximum amount of token A in the token's smallest denomination (base units).

string

Maximum amount of token B in the token's smallest denomination (base units).

string

Recipient for sweep tokens.

string
required

Desired amount of token A to add as liquidity, 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

Desired amount of token B to add as liquidity, 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".

path
array of strings
required

Array of token contract addresses for the liquidity pool. Provide [tokenAAddress, tokenBAddress]. Example (LINK/USDC): ['0x514910771AF9Ca656af840dff83E8264EcF986CA', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'].

path*
string
required

Amount of tokens to add as liquidity, 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

Amount of the output token to receive, 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

True if receiving tokens as internal token balances. False if receiving as ERC20.

string
required

Difference between two consecutive bins.

string
required

Bin IDs that liquidity should be removed from.

string
required

Array of token amounts to remove as liquidity, each specified in the token's smallest denomination (base units). Examples: 1 WETH (18 decimals) = "1000000000000000000"; 1 USDC (6 decimals) = "1000000".

string
required

LP token that represents a position in a pool.

string
required

The address of the pool.

string

Minimum acceptable output amount in the token's smallest denomination (base units). Provides slippage protection — the transaction reverts if the output falls below this value. Set to "0" to disable slippage protection. Examples: to require at least 0.99 USDC (6 decimals), use "990000"; to require at least 0.99 WETH (18 decimals), use "990000000000000000".

string

Different pool based on the fees. By default, it is selected as 2500.

Response

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