build_race_bet_transaction
Generates an unsigned transaction to bet on a race (multi-outcome) market, taking market key, outcome index, SOL amount, and user wallet for secure signing.
Instructions
[REQUIRES BAOZI_LIVE=1] Build unsigned transaction for placing a bet on a race (multi-outcome) 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_index": "<outcome_index>",
"amount_sol": "<amount_sol>",
"user_wallet": "<user_wallet>"
},
"name": "build_race_bet_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | Race market public key | |
| amount_sol | Yes | Bet amount in SOL | |
| user_wallet | Yes | User wallet public key | |
| outcome_index | Yes | Index of outcome to bet on | |
| affiliate_code | No | Optional affiliate code |