prepare_buy_lottery_tickets
Lowline Lottery: prepare (unsigned) buying tickets for the current round with $ZENI: an exact-amount approve (only if your allowance is short), then the buy. Amounts are in whole $ZENI, price read live from the contract. Pass count, and optionally number (0 to range minus 1, see lottery_info) to put all tickets on one number; leave it out and the contract picks. Refused when sales are closed or paused, the wallet cap is reached or the wallet cannot afford it. You sign and send it yourself.
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>",
"count": "<count>"
},
"name": "prepare_buy_lottery_tickets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many tickets (at least 1, up to the per wallet cap in lottery_info). | |
| number | No | Optional: the ticket number, from 0 to range minus 1. Omit for contract picked numbers. | |
| wallet | Yes | Your own 0x wallet address. Nothing is sent from it; it is used to read your balance, allowance and tickets held, and to simulate. |