build_bet_transaction
Generate an unsigned transaction for placing a bet on a YES/NO market, specifying the market, outcome, SOL amount, and user wallet.
Instructions
[REQUIRES BAOZI_LIVE=1] Build unsigned transaction for placing a bet on a boolean (YES/NO) market.
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": "<market>",
"outcome": "<outcome>",
"amount_sol": "<amount_sol>",
"user_wallet": "<user_wallet>"
},
"name": "build_bet_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | Market public key | |
| outcome | Yes | Outcome to bet on | |
| amount_sol | Yes | Bet amount in SOL | |
| user_wallet | Yes | User wallet public key | |
| affiliate_code | No | Optional affiliate code for commission |