get_allowance
Check how much stablecoin a prediction market contract is approved to spend from a wallet before buying shares, so you know whether an approve transaction is required.
Instructions
Check how much stablecoin a prediction market contract is approved to spend from a wallet. Use this before buying shares to see if an approve transaction is needed.
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": {
"wallet": "<wallet>",
"market_address": "<market_address>",
"chain_id": "<chain_id>"
},
"name": "get_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Wallet address (token owner) | |
| chain_id | Yes | EVM chain ID (e.g. 8453 for Base, 369 for PulseChain) | |
| market_address | Yes | PredictionMarket contract address (spender) |