Set your coin's mode
set_coin_modeYour coin's mode from its next round (the round filling keeps its own): full (its rounds draw its prize), draws (each round pays drawSol in SOL to its winner), prizes (you give prizes from its pot with award_prize; only a coin nobody but you holds can switch to it, has_holders otherwise) or redeem (no draws: the pot pays for redemptions, and a holder burns enough coins for its one prize, a store item or a gift card; only a coin nobody but you holds can switch to it, and it stays one once others hold it). Into redeem or out of it: has_holders while anyone but you holds the coin, and redeeming while a redemption is on its way (a burn prepared in the last 15 minutes, or one found and not settled); into redeem also rounds_open while a round of the coin is unfinished. Answers the coin, as get_coin does. 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>",
"mode": "<mode>"
},
"name": "set_coin_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | The coin's mint address (base58). | |
| mode | Yes | ||
| coinKey | No | Your coin key (ck_live_…, from create_coin_key). Not needed when the request sends it as Authorization: Bearer ck_live_…. | |
| drawSol | No | draws: the SOL each round pays, 0.1 to 100, as a decimal string ("0.5"). |