build_remove_liquidity_tx
Build an unsigned transaction to remove liquidity from a prediction market by burning LP tokens and returning stablecoin to the provider.
Instructions
Build an unsigned transaction to remove liquidity from a prediction market. Burns LP tokens and returns stablecoin.
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": {
"market_address": "<market_address>",
"lp_tokens": "<lp_tokens>",
"chain_id": "<chain_id>"
},
"name": "build_remove_liquidity_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | Yes | EVM chain ID (e.g. 8453 for Base, 369 for PulseChain) | |
| lp_tokens | Yes | Number of LP tokens to burn (e.g. "50.0") | |
| market_address | Yes | PredictionMarket contract address |