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.
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 |