build_approve_tx
Build an unsigned ERC-20 approve transaction so a prediction market can spend your stablecoin. Sign and broadcast it before buying shares or adding liquidity.
Instructions
Build an unsigned ERC-20 approve transaction to let a prediction market spend your stablecoin. Must be signed and broadcast before buying shares or adding liquidity.
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_approve_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to approve (e.g. "100"). Use "max" for unlimited approval. | |
| chain_id | Yes | EVM chain ID (e.g. 8453 for Base, 369 for PulseChain) | |
| market_address | Yes | PredictionMarket contract to approve as spender |