build_add_liquidity_tx
Builds an unsigned transaction to add stablecoin liquidity to a prediction market and return LP tokens; approve the stablecoin first.
Instructions
Build an unsigned transaction to add liquidity to a prediction market. Requires prior stablecoin approval. Returns LP tokens.
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>",
"amount": "<amount>",
"chain_id": "<chain_id>"
},
"name": "build_add_liquidity_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Stablecoin amount to add (e.g. "100") | |
| chain_id | Yes | EVM chain ID (e.g. 8453 for Base, 369 for PulseChain) | |
| market_address | Yes | PredictionMarket contract address |