add_liquidity
Add liquidity to a DEX trading pair by supplying token amounts and a private key. Specify network, DEX, and slippage to complete the transaction.
Instructions
Add liquidity to a DEX trading pair
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tokenA": "<tokenA>",
"tokenB": "<tokenB>",
"amountA": "<amountA>",
"amountB": "<amountB>",
"privateKey": "<privateKey>"
},
"name": "add_liquidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | Specific DEX to use | |
| tokenA | Yes | First token address | |
| tokenB | Yes | Second token address | |
| amountA | Yes | Amount of first token (in wei) | |
| amountB | Yes | Amount of second token (in wei) | |
| 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 (default: 1%) | |
| 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. |