Award a prize from your coin's pot
award_prizeA coin in prizes mode: gives winner an item, bought now from the coin's open pot at its fresh price plus a round's margin, as a round of the coin's: { round }. item is an id from search_prizes. The same idempotencyKey again answers the same round, whatever changed since. Refused when the pot is short, the item can't be bought now, or the winner is one of the coin's pools, Souvenir's wallets or its creator. Takes a coin key from create_coin_key as coinKey or as the request's Authorization: Bearer ck_live_… header; it works for every coin its wallet created. Refused with "The coin API's keys and writes are not open yet." only if Souvenir pauses the coin API.
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": {
"mint": "<mint>",
"winner": "<winner>",
"item": "<item>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "award_prize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The prize: an id from search_prizes. | |
| mint | Yes | The coin's mint address (base58). | |
| winner | Yes | The wallet that wins it (base58). | |
| coinKey | No | Your coin key (ck_live_…, from create_coin_key). Not needed when the request sends it as Authorization: Bearer ck_live_…. | |
| idempotencyKey | Yes | Your own id for this award, 1 to 100 letters, digits or symbols: sent again, the same round answers. |