Prepare a Bopster position
prepare_positionBuild unsigned transactions to take a YES or NO position on a Bopster market, including token approval. Validates the market and wallet balance so your agent's wallet can sign and send.
Instructions
Build the unsigned transactions to take a YES or NO position on a Bopster market on Base: an exact-amount token approval, then the position. Checks the market is open, is a real Bopster market and that the wallet holds enough. Non-custodial: this server never holds keys or sends anything; the agent's wallet signs and sends the transactions in order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Which side to take. | |
| amount | Yes | Stake in whole token units, e.g. "5" for 5 USDC (not base units). | |
| market | Yes | The Bopster market contract address (0x...). | |
| wallet | Yes | The wallet that will sign and send the transactions (0x...). Balances and positions are read for this address. |