remove_liquidity
Remove LP tokens from a DEX pair to withdraw your tokens and any earned fees. Specify token addresses and network to execute.
Instructions
Remove liquidity from a DEX trading pair
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | Specific DEX to use | |
| tokenA | Yes | First token address | |
| tokenB | Yes | Second token address | |
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| slippage | No | Slippage tolerance in percent | |
| liquidity | Yes | Amount of LP tokens to remove (in wei) | |
| privateKey | Yes | Private key in hex format (with or without 0x prefix). SECURITY: This is used only for address derivation and is not stored. The private key will not be logged or displayed in chat history. |