cookie-mcp
v0.10.1Cookie Chain tools for AI agents: swap, launch, liquidity, staking, NFTs, and a Solana bridge.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
submit_signed_tx Submit a wallet-signed transaction
Second half of an externally signed action. When the server runs with an external signer (no private key), every money-moving tool stops at the signing step and returns `{ status: 'needs_signature', transactionBase64, submit, blockhash, lastValidBlockHeight, what, step }`. Sign `transactionBase64` with the user's wallet WITHOUT modifying it (any co-signatures would break; it was simulated and its effect on the wallet checked against the request, but the user should still review it in their wallet), then call this with the signed bytes and the same `submit`, `blockhash`, `lastValidBlockHeight`…
| Parameter | Type | Description |
|---|---|---|
signedTransactionBase64 * | string | the fully signed transaction, base64 |
bazaarLog | object | `bazaarLog` from needs_signature (NFT tools only): reported to Baked Bazaar once confirmed |
blockhash | string | `blockhash` from needs_signature |
lastValidBlockHeight | integer | `lastValidBlockHeight` from needs_signature |
submit | the `submit` object from needs_signature (default: the Cookie Chain RPC) | |
what | string | `what` from needs_signature (names the action) |
chain_health Cookie Chain health
Live Cookie Chain snapshot: slot heights per commitment, finalization lag (the key health signal — a stall causes BlockhashNotFound), epoch progress, validator/node counts, version, block-production rate, and RPC latency. No arguments.
get_pools List Cookie Chain pools
Liquidity pools across every Cookie Chain DEX (Cookiebox DAMM/CLMM, CookieSwap BAMM/xYBN) with TVL (USD) and 24h volume, sorted by TVL or volume. Use to find the most liquid markets.
| Parameter | Type | Description |
|---|---|---|
limit | integer | max pools to return (default 20) |
sort | string | sort key (default tvl) |
get_token_info Token info
Metadata + market data for a token mint: name/symbol/decimals, price (USD and COOK), 24h change, market cap, liquidity, 24h volume, holder count, and supply.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the token mint address (base58) |
search_tokens Search tokens by name
Resolve a token name or ticker to its mint by searching the Cookiescan registry (every Cookie Chain token) by symbol/name — partial and case-insensitive — or by mint prefix. Returns ranked candidates (most liquid first) with mint, price, liquidity, 24h volume, and holders. Use this FIRST whenever the user names a token but you don't have its mint, then pass the chosen mint to get_token_info / get_quote / trade. Multiple tokens can share a symbol — compare liquidity and confirm the mint before trading. Also searches the MomoSwap launchpad: a launch still on its curve (no DEX market yet, s…
| Parameter | Type | Description |
|---|---|---|
query * | string | token name, ticker, or mint prefix, e.g. "cookhouse" |
limit | integer | max results (default 20) |
get_quote Swap quote
Quote a swap across all Cookie Chain DEX liquidity via one of two aggregators: `cookiebox` (Cookiebox Swap API) or `cookiescan` (Candy Shop / Cookiescan Swap API). Quote both to compare and pick the better output. Returns expected output, output after any aggregator fee, minimum out after slippage, price impact, and the route. Quote-only — no wallet needed. `amount` is a UI amount of the input token. Pass `chain: 'solana'` to price the bridged SPL COOK (mint 36ZrtQoab5MhhySaP1YSTwUahSk6GRVUTtZ6cuVfm9e1) against SOLANA MAINNET liquidity via Jupiter. Scoped to COOK: one of inputMint/outputMint…
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of the input token, e.g. 10 for 10 COOK | |
inputMint * | string | input token mint (use the COOK/native mint for COOK) |
outputMint * | string | output token mint |
aggregator | string | which swap aggregator to quote: cookiebox (default, no fee) or cookiescan (Candy Shop, ~20 bps fee). Cookie Chain only — ignored/rejected when chain is "solana", which always uses Jupiter |
chain | string | which chain to quote on; defaults to cookie (Cookie Chain). "solana" quotes Solana mainnet via Jupiter and requires a COOK leg — note So1111..112 means COOK on Cookie Chain but wSOL on Solana |
slippageBps | integer | slippage tolerance in bps (default 500) |
get_wallet Configured wallet
Which wallet this server acts for: the public key derived from COOKIE_PRIVATE_KEY (signer 'local'), or the wallet supplied by the request / COOKIE_WALLET_ADDRESS (signer 'external', where money tools return needs_signature instead of signing), whether it is read-only, and the Cookie Chain RPC it is pointed at. No arguments, no RPC call — so it answers even when the chain is unreachable. Use it before any money-moving tool to confirm the identity, and to tell apart the key a running server booted with from a key that has since changed on disk. Never returns the secret.
get_balance Wallet balances
Native COOK + SPL/Token-2022 token balances for a wallet, with USD values. Defaults to the configured wallet (COOKIE_PRIVATE_KEY); pass `wallet` to inspect any address or .cook name. In read-only mode (no key), `wallet` is required. Pass `chain: 'solana'` for the far side of the Hyperlane bridge instead: the wallet's SPL COOK on Solana mainnet (what a `solana-to-cookie` bridge spends) plus its SOL, which pays that transfer's fee and interchain gas (and is what a SOL bridge spends), plus `bridgeTokens`: every other token the bridge can move out of Solana, found on-chain so newly added ones appe…
| Parameter | Type | Description |
|---|---|---|
chain | string | which chain to read; defaults to cookie (Cookie Chain) |
wallet | string | wallet address (base58) or .cook name; omit to use the configured wallet |
stake_info bCOOK liquid staking info
Live bCOOK (liquid-staked COOK) stats: the COOK-per-bCOOK exchange rate (only ever rises), TVL, bCOOK supply, deposit/withdraw fees, and an estimated APY. Use before `stake`/`unstake`. No key needed.
trade Swap
Execute a swap via the chosen aggregator (`cookiebox` by default, or `cookiescan` = Candy Shop): the aggregator quotes and builds the tx; we simulate, sign locally with the configured wallet, submit, and confirm. Non-custodial. Requires COOKIE_PRIVATE_KEY. Use get_quote first to compare aggregators. `amount` is a UI amount of the input token. Returns the tx signature + explorer link. Pass `chain: 'solana'` to buy or sell the bridged SPL COOK on SOLANA MAINNET via Jupiter, paying fees in SOL. Scoped to COOK: one of inputMint/outputMint MUST be 36ZrtQoab5MhhySaP1YSTwUahSk6GRVUTtZ6cuVfm9e1 — un…
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of the input token, e.g. 10 for 10 COOK | |
inputMint * | string | input token mint (COOK/native mint for COOK) |
outputMint * | string | output token mint |
aggregator | string | which swap aggregator to execute through: cookiebox (default, no fee) or cookiescan (Candy Shop, ~20 bps fee). Cookie Chain only — rejected when chain is "solana", which always uses Jupiter |
chain | string | which chain to swap on; defaults to cookie (Cookie Chain). "solana" buys/sells COOK on Solana mainnet via Jupiter (a COOK leg is required) and REQUIRES SOLANA_RPC_URL to be set to a dedicated RPC |
slippageBps | integer | slippage tolerance in bps (default 500) |
unwrapCook | boolean | default true. false = receive wCOOK: leave a native-COOK output in the wallet's wrapped-COOK token account instead of unwrapping it. Cookiebox aggregator only |
unwrapSol | boolean | DEPRECATED alias of `unwrapCook` — same flag, kept for older callers |
wrapCook | boolean | default true. false = the input is wCOOK: pay from the wallet's wrapped-COOK token account instead of wrapping native COOK. Cookiebox aggregator only |
wrapSol | boolean | DEPRECATED alias of `wrapCook` — same flag, kept for older callers |
get_limit_orders Open limit orders
Open limit / stop orders resting in the Cookiebox limit-order escrow for a wallet (yours by default, or `owner` = any address or .cook name). Read straight from the chain via the Cookiebox aggregator — no key needed. Each order shows the remaining input, the gross output the program enforces (`minReceive`), what the wallet actually receives after the maker fee (`netAfterFee`), the price (a stop's TRIGGER), fill progress, expiry and status (`open` / `filling` / `expired` — an expired order still holds its input until it is cancelled). `fees` is the live on-chain schedule in bps (null when u…
| Parameter | Type | Description |
|---|---|---|
owner | string | wallet address or .cook name; defaults to the configured wallet |
place_limit_order Place a limit or stop order
Rest an order in the Cookiebox limit-order escrow: the input is locked in a program-owned reserve and a keeper fills it through the same router `trade` uses once the executable rate reaches the price, paying the pinned output account (partial fills possible). Requires COOKIE_PRIVATE_KEY. `kind: 'limit'` (default, take-profit) fills at the price OR BETTER; the price must sit ABOVE the current rate. `kind: 'stop'` is a stop-loss, stop-MARKET: `price` is the TRIGGER, which must sit BELOW the current rate; once the rate falls to it the keeper sells at market and passes the proceeds through — a h…
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of the input token to sell, e.g. 10 for 10 COOK | |
inputMint * | string | token to sell (COOK/native mint for COOK) |
outputMint * | string | token to receive |
price * | output per input in human units, the limit for a take-profit or the trigger for a stop. Pass a decimal STRING (e.g. "0.000012") for tiny prices — a number that would print in exponent form is refuse… | |
expiresInSeconds | integer | lifetime in seconds (default 604800 = 1 week, max one year); 0 = good-til-cancelled. An expired order is NOT auto-refunded until cancelled or reaped. A curve sell must expire within 30 days and cannot… |
floorPrice | stop only: override the on-chain safety floor (default 50% below the trigger). Must be at or below the trigger. Not what you receive — a cap on a compromised keeper | |
kind | string | limit (default: take-profit, fills at price or better) or stop (stop-market sell once the rate falls to price) |
skipMarketCheck | boolean | default false. Place even if the order would fill/trigger at once against the current rate, or no route exists yet |
unwrapCook | boolean | default true. When the output is COOK: a fill pays native COOK to the wallet. false = receive wCOOK in the token account |
unwrapSol | boolean | DEPRECATED alias of `unwrapCook` — same flag, kept for older callers |
wrapCook | boolean | default true. When the input is COOK: wrap the lamport shortfall into wCOOK in the same tx and refund native COOK on cancel/expiry. false = pay from an existing wCOOK balance and be refunded wCOOK |
wrapSol | boolean | DEPRECATED alias of `wrapCook` — same flag, kept for older callers |
cancel_limit_order Cancel a limit order
Cancel one of your open limit / stop orders and get the remaining input back. Requires COOKIE_PRIVATE_KEY; only the maker can cancel. The refund lands in the order's pinned input account (recreated first if it was closed); a native-COOK order is refunded as COOK, a wCOOK-funded one is unwrapped in the same tx unless `unwrapCook: false`. Also how an EXPIRED order's input is recovered. A `curve-sell` (a launchpad sale authorization, nothing escrowed) is revoked directly on the launchpad instead — the shares never left the position, so the result has `revoked: true` and no refund moves. The bui…
| Parameter | Type | Description |
|---|---|---|
order * | string | the `order` address from get_limit_orders |
unwrapCook | boolean | default true. false = leave a wCOOK refund wrapped in the token account |
unwrapSol | boolean | DEPRECATED alias of `unwrapCook` — same flag, kept for older callers |
get_dca_schedules Running DCA schedules
DCA schedules running in the Cookiebox DCA escrow for a wallet (yours by default, or `owner` = any address or .cook name). Read straight from the chain via the Cookiebox aggregator — no key needed. A DCA buys a fixed slice of the budget on a clock: the whole budget is escrowed at open and a keeper releases one slice per cycle. Each schedule shows the budget, what is spent and left, the slice, how many cycles the PROGRAM derives, the average price bought at so far (`averagePrice` — what a list of individual fills never tells you), the optional per-cycle price band and when the next cycle is…
| Parameter | Type | Description |
|---|---|---|
owner | string | wallet address or .cook name; defaults to the configured wallet |
open_dca Open a DCA schedule
Dollar-cost average into a token: the WHOLE budget is escrowed in a program-owned reserve now, and the Cookiebox keeper releases one slice every `cycleSeconds` and swaps it through the same router `trade` uses, paying the proceeds minus the maker fee (10 bps, 3 on a stable pair — read live) into your pinned account. Requires COOKIE_PRIVATE_KEY. Split the budget with EITHER `cycles` (the slice is rounded UP, which can retire the budget a cycle early — the result reports the count the program actually derives) OR `amountPerCycle`. The program, not the keeper, owns the schedule, so a stolen k…
| Parameter | Type | Description |
|---|---|---|
amount * | the WHOLE budget in UI units of the input token — all of it is escrowed now | |
cycleSeconds * | integer | seconds between cycles (60–31536000); e.g. 3600 hourly, 86400 daily, 604800 weekly |
inputMint * | string | token to spend (COOK/native mint for COOK) |
outputMint * | string | token to buy |
amountPerCycle | UI amount of the input token to spend per cycle, at most `amount`. Pass this OR cycles | |
cycles | integer | split the budget into this many cycles (slice rounded UP, so the real count can be one lower; max 1024). Pass this OR amountPerCycle |
maxPrice | optional ceiling on the rate one cycle may fill at — guards against an implausibly good fill on a manipulated pool. A cycle above it is skipped | |
minPrice | optional floor on the rate ONE cycle may fill at, output per input in human units (a decimal STRING for tiny prices). A cycle below it is skipped and never caught up | |
skipMarketCheck | boolean | default false. Open even if no route exists yet or the band cannot be met at the current rate (every cycle would be skipped) |
startAt | integer | unix SECONDS for the first cycle; omit to start now. Must be in the future (the program clamps a past time to 'now', which would fire immediately) |
unwrapCook | boolean | default true. When the output is COOK: each cycle pays native COOK to the wallet. false = receive wCOOK in the token account |
unwrapSol | boolean | DEPRECATED alias of `unwrapCook` — same flag, kept for older callers |
wrapCook | boolean | default true. When the input is COOK: wrap the lamport shortfall for the whole budget into wCOOK in the same tx and refund native COOK on close. false = pay from an existing wCOOK balance |
wrapSol | boolean | DEPRECATED alias of `wrapCook` — same flag, kept for older callers |
close_dca Close a DCA schedule
Stop one of your DCA schedules and get the UNSPENT remainder of the budget back; what the schedule already bought is already in your wallet. Requires COOKIE_PRIVATE_KEY; only the owner can close. The refund lands in the account pinned at open (recreated first if it was closed); a schedule funded with native COOK is refunded as COOK, a wCOOK-funded one is unwrapped in the same tx unless `unwrapCook: false`. A schedule that has spent its whole budget closes itself and refunds its rent, so it will no longer be listed. The built transaction is decoded and checked (your schedule, refund to you, kno…
| Parameter | Type | Description |
|---|---|---|
dca * | string | the `dca` address from get_dca_schedules |
unwrapCook | boolean | default true. false = leave a wCOOK refund wrapped in the token account |
unwrapSol | boolean | DEPRECATED alias of `unwrapCook` — same flag, kept for older callers |
get_zip_orders Zip orders
Zip orders (Cookiebox trailing range orders, program `ZiPzPbbM…`) of a wallet — yours by default, or `owner` = any address or .cook name. Read straight from the program; no key needed. A Zip sells one token for another across a price range and never fills back: it rests as a one-sided Cookiebox CLMM position that the Cookiebox keeper trails, each step paying the filled part (plus the LP fees earned) to the owner's wallet. Prices are **receive per sell** (what one sold token fetches; see `priceUnit`): each order reports what it sells and receives, its `from`–`to` range, the current price,…
| Parameter | Type | Description |
|---|---|---|
owner | string | wallet address or .cook name; defaults to the configured wallet |
start_zip Place a Zip order
Sell `amount` of `sell` for `receive` across a price range, like Cookiebox's /trade Zip tab: `from` and `to` are **receive per sell** (what one sold token fetches; `from` is the price nothing sells under, `to` the best). Whatever part of the range the market already beats is sold at once (in the pool, or through the router, never under `from`); the rest rests as a one-sided Cookiebox CLMM position that the Cookiebox keeper trails as the price moves through the range, paying each filled part — plus the LP fees earned — to your wallet, and never converting back. Omit `from`/`to` for a range…
| Parameter | Type | Description |
|---|---|---|
amount | string | number | how much of `sell` to sell (UI units) |
cranker | string | who may crank the order: omit for the Cookiebox keeper (recommended), "anyone", or a public key you run a keeper with |
fee | integer | LP fee the order earns, in bps (one of 25, 30, 100, 200, 400); default: the pair's deepest pool |
from | string | number | the price nothing sells under, as RECEIVE per SELL (what one sold token fetches). Default: one price step past the market |
minStep | integer | tick spacings the price must move past the trailing edge before it follows (default 1 = as close as the pool allows) |
position | string | instead of sell/receive/amount: a CLMM position you hold (NFT mint or position account) to zip, or whose paused order to repair |
receive | string | mint of the token to RECEIVE, or "COOK" |
sell | string | mint of the token to SELL, or "COOK". With `position`: the side of it to sell |
to | string | number | the best price of the range, RECEIVE per SELL. Default: 10% above `from` |
stop_zip Stop a Zip order
Stop a Zip order and take everything back, as Cookiebox's Stop does: closes the order (its rent to the owner), revokes the NFT delegation, withdraws what is left in the position with its fees and rewards, and closes the position (its rent back too). What had filled is already in your wallet. On a `filled` order (the keeper already paid out and closed the order) this closes the empty position left behind and returns its rent. The order's owner, or whoever holds the position NFT now, may stop it (a holder who is not the owner only closes the order). Name it by NFT mint, position account or order…
| Parameter | Type | Description |
|---|---|---|
pool | string | a cookiebox-clmm pool address: stop the order on your position in it |
position | string | the position NFT mint, the position account, or the order address (get_zip_orders `order`). Pass this OR `pool` |
get_dice_table Dice Club table
Dice Club (provably fair on-chain dice, program `DiCe5Vcp…`): the house's live rules and limits — edge, minimum stake, chance range, free bankroll, the largest stake it takes at common chances, how many bets wait for the keeper (the table closes at 10), and the seed-chain commitment. Pass `chance` (win chance in %, e.g. 50) to quote it, plus `amount` (COOK) to check a specific bet. Members only: names the NFT collection a bettor must hold (Cookie Chads) and, for `wallet` (default: yours), whether it holds one. No key needed.
| Parameter | Type | Description |
|---|---|---|
amount | string | number | stake in COOK; with `chance`, checks whether the table takes this bet |
chance | string | number | win chance in percent (0.01–98.99, at most two decimals) to quote |
wallet | string | address or .cook name to check membership and balance for; default: yours |
roll_dice Roll dice (Dice Club)
Bet `amount` COOK at Dice Club: win if the roll (0.00–99.99) lands under `chance` %. A win pays stake × (100 − edge) / chance (1% edge: 50% → 1.98x, 10% → 9.9x); a loss loses the stake. Gambling with real COOK — only roll when the user asked to. The house's keeper settles the bet within seconds by revealing the next seed of a chain it committed to up front; this server generates the client seed that goes into the roll (random, or `clientSeed`), waits for the settle and re-derives the roll from the revealed seed (`proof.verified`, plus a link to the site's verifier). Returns `won` /…
| Parameter | Type | Description |
|---|---|---|
amount * | string | number | stake in COOK |
chance * | string | number | win chance in percent, e.g. 50 (0.01–98.99, at most two decimals) |
clientSeed | string | your own seed: 64 hex chars, or any text (hashed); default: random |
waitSeconds | integer | how long to wait for the keeper to settle (default 45; 0 = return once placed) |
get_dice_bets Dice Club bets
A wallet's Dice Club bets (yours by default). With `nonce` (from roll_dice): that bet — still pending, or its result re-verified from the revealed seed (roll, won/lost, paid, proof). Without: every pending bet, with how many bets are ahead of it and whether it is refundable (the keeper missed its ~24h deadline — refund_dice_bet). Results older than ~11 days are past the RPC's history. No key needed.
| Parameter | Type | Description |
|---|---|---|
nonce | string | number | the bet's nonce, as roll_dice returned it |
wallet | string | address or .cook name; default: yours |
refund_dice_bet Refund an overdue Dice Club bet
Take back the stake of one of your Dice Club bets that the house's keeper failed to settle by its deadline (~24h after placing): the program refunds the stake (and the bet account's rent), no roll. Only the oldest unsettled bet on the table can be refunded, and only once past its deadline — both are checked before sending. Simulates first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
nonce * | string | number | the bet's nonce (get_dice_bets lists your pending bets) |
transfer Transfer COOK or a token
Send native COOK (omit `mint` or use the COOK mint) or an SPL/Token-2022 token to another wallet, creating the recipient's token account if needed. An optional `memo` is written to the transaction through the SPL Memo program, signed by this wallet — pass it when paying an invoice or payment request whose app matches transfers by memo. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount to send | |
to * | string | recipient wallet address (base58) or .cook name (e.g. "bot.cook") |
memo | string | text recorded on-chain with the transfer via the SPL Memo program (UTF-8, up to 566 bytes), e.g. an invoice reference; omit for a plain transfer |
mint | string | token mint to send; omit for native COOK |
unwrap_cook Unwrap wCOOK to COOK
Turn the wallet's whole wrapped-COOK (wCOOK) balance back into native COOK by closing its wCOOK token account; the account's rent comes back too. wCOOK collects where a venue pays out in it — MomoSwap launchpad referral earnings, NFT sell-backs, swaps run with `unwrapCook: false` — and shows in get_balance as a token on the native mint. Fails early when the wallet has no wCOOK account. Network fee only. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
stake Stake COOK for bCOOK
Stake COOK into the bCOOK liquid-staking pool (SPL Stake Pool): deposits COOK and mints bCOOK to your wallet (≈ amount × 0.995 / rate, after the 0.5% deposit fee). bCOOK keeps earning as the rate rises and stays liquid/transferable. Simulates first. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of COOK to stake, e.g. 10 |
unstake Unstake bCOOK for COOK
Redeem bCOOK back to COOK instantly from the pool's liquid reserve (≈ amount × rate × 0.98, after the 2% withdrawal fee). Burns bCOOK and pays COOK to your wallet. Simulates first; honors the spend cap (valued in COOK). Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of bCOOK to unstake, e.g. 5 |
get_launchpad_pools List launchpad launches
Browse MomoSwap launchpad pools: name/symbol/mint, curve price in COOK, amount raised vs the graduation target (with progress %), participants, settlement mode and the launch window. Defaults to `live` launches (currently tradeable), sorted closest-to-graduation first. `ended` means the launch window closed but nobody has settled the pool on-chain yet, so it is neither tradeable nor claimable — filter for it explicitly, or use `all`, since a `live` filter may or may not include such pools depending on the launchpad's deployed version. PAIRED launches carry a `paired` block (holder tax %, the…
| Parameter | Type | Description |
|---|---|---|
limit | integer | max pools to return (default 20) |
status | string | lifecycle filter (default live) |
get_launchpad_token Launchpad token detail
Full state of one launchpad launch: curve price, raise vs graduation target, settlement mode, fee split, and — when COOKIE_PRIVATE_KEY is set — this wallet's curve position (shares, invested COOK, current sell value, what it already claimed) plus pending creator fees if it created the launch. Pass `quoteCook` to preview how many tokens a buy of that size would get. A `status` of `ended` means trading closed but the pool is not settled on-chain yet — nothing can be traded, and only a Fair-mode refund can be claimed (the claim settles the pool itself). For a PAIRED launch there is no curve…
| Parameter | Type | Description |
|---|---|---|
ref * | string | the token mint or the launchpad pool address (either works) |
quoteCook | optional COOK amount to quote a buy for, e.g. 10 |
get_launchpad_positions My launchpad positions
Every MomoSwap launchpad position a wallet holds, across all launches — the view get_balance CANNOT give, because pre-graduation holdings are program-tracked curve shares rather than SPL tokens. Per position: shares, COOK invested vs withdrawn, what a live curve would pay to sell now, and the `action` if something is outstanding (unclaimed tokens after graduation, an unclaimed Fair-mode refund, a settlement payout). Also lists launches this wallet created that have unclaimed creator fees or vesting (the vest is paid in COOK). PAIRED launches are listed under `pairedHoldings` (real Token-2022…
| Parameter | Type | Description |
|---|---|---|
includeClosed | boolean | also list fully exited / already-settled positions (default false) |
owner | string | wallet address or .cook name to inspect (defaults to your own wallet) |
get_launchpad_pair_assets Paired-launch options
What a MomoSwap PAIRED launch may use: the active pair assets (the tokens a paired launch's holders are paid in — e.g. COOK, bCOOK — with mint, decimals and USD price) and the holder-tax tiers in percent (any the current curve refuses are listed as unavailable). Pass one of each to deploy_token as `pairAsset` + `holderTaxPct`. Read-only — no key needed.
deploy_token Launch a token
Launch a new token on the MomoSwap launchpad (bonding curve priced in COOK, graduates to the open market at the raise target). Mint + freeze authority are renounced and the metadata is immutable, so a launch is FINAL — nothing about the token can be changed afterwards. Costs the launchpad's creation fee, read live from its config (0 on the current deployment, so a launch usually costs only account rent) plus any devBuyCook. A LOGO IS REQUIRED: pass `imagePath` (preferred for a file on this machine — the server reads and types it itself, so never base64 a local file yourself), `imageBase64`…
| Parameter | Type | Description |
|---|---|---|
name * | string | token name, max 32 chars |
symbol * | string | ticker, max 10 chars (upper-cased) |
antiSnipe | boolean | cap each wallet during the opening window (default true) |
description | string | short description for the token page |
devBuyCook | optional COOK amount to buy atomically in the launch transaction | |
devBuyPctOfTotalSupply | number | dev buy sized as a percent of the TOTAL supply (e.g. 1 for 1%), priced off the live launch curve. Use this when the user asks for a share rather than a COOK amount — note the launchpad UI quotes a d… |
durationSecs | integer | how long the launch stays open, 60s–7d (default 86400) |
expiryMode | string | what happens if it never graduates: fair = pro-rata refund (default), dead = unraised funds swept to treasury, jackpot = Merkle payout to the top 10%, survivor = top 3 |
holderTaxPct | number | PAIRED launch: the holder tax on every transfer, in percent — one of the launchpad's tiers (e.g. 1, 2, 3) |
imageBase64 | string | logo bytes as base64 (preferred; a data: prefix is fine) — pinned to IPFS |
imageMimeType | string | MIME type of imageBase64, e.g. "image/png" (required with imageBase64) |
imagePath | string | path to a logo file on this machine (PNG/JPEG/GIF/WebP, max 5 MB, `~` ok) — preferred over imageBase64 for a local file: the server reads the bytes and detects the type, so the image never has to be… |
imageUrl | string | an already-hosted https image URL — its bytes are downloaded and re-pinned to IPFS, so the logo survives the original host going away |
loginSignature | object | external-signer mode only: the wallet's ed25519 signature (base58) over the launchpad login `message` a previous deploy_token call returned as needs_signature { kind: 'message' }. Pass both back verba… |
maxBuyPerWalletCook | lifetime cap per wallet in COOK (default none) | |
maxCostCook | the most this launch may cost in COOK (creation fee + dev buy); refused before any spend when the launchpad's numbers exceed it. Required with devBuyPctOfTotalSupply | |
minBuyCook | minimum buy per trade in COOK (default none) | |
noLogo | boolean | launch deliberately without a logo. Only set this if the user asked for it — the token metadata is immutable, so no logo can ever be added and most UIs show a blank image |
pairAsset | string | PAIRED launch: the asset holders are paid in — a mint or symbol from get_launchpad_pair_assets (e.g. COOK, bCOOK). Requires holderTaxPct |
telegram | string | Telegram handle or URL |
twitter | string | X/Twitter handle or URL |
website | string | project website URL |
launchpad_buy Buy on a launchpad curve
Buy a launchpad token on its bonding curve with COOK (the launchpad wraps the COOK and opens any missing accounts). ⚠️ You receive program-tracked CURVE SHARES, not SPL tokens: they will not show in get_balance and trade cannot swap them — exit with launchpad_sell, or claim the real token with claim_launchpad after the pool graduates. There is no slippage parameter (the program has no min-out), so the fill can move if others trade first. A 1% trade fee applies. PAIRED launches differ: you receive REAL Token-2022 tokens (in get_balance), net of the holder tax; the buy carries an on-chain…
| Parameter | Type | Description |
|---|---|---|
amountCook * | how much COOK to spend, e.g. 10 | |
ref * | string | the token mint or the launchpad pool address (either works) |
referrer | string | optional referrer wallet that earns the referral fee share (not your own) |
slippageBps | integer | PAIRED launches only: slippage tolerance in bps for the on-chain minimum (default 100 = 1%) |
launchpad_sell Sell on a launchpad curve
Sell curve shares back to a launchpad bonding curve for COOK (unwrapped to native COOK by default). Only works while the pool is live and only for shares bought via launchpad_buy — a graduated token's SPL balance is sold with `trade` instead. A 1% trade fee applies. PAIRED launches: sells REAL tokens from your wallet (`shares` = the token amount); the holder tax comes off them on the way into the pool, and the sell carries an on-chain minimum (`slippageBps`, default 1%). Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
ref * | string | the token mint or the launchpad pool address (either works) |
shares * | how many tokens (curve shares) to sell, as a UI amount | |
slippageBps | integer | PAIRED launches only: slippage tolerance in bps for the on-chain minimum (default 100 = 1%) |
unwrap | boolean | unwrap the proceeds to native COOK (default true) |
claim_launchpad Claim a launchpad payout
Settle a launchpad position. By default the right claim is picked from the pool's state: graduated → your real SPL tokens; expired (or `ended`) in fair mode → a pro-rata COOK refund; expired in jackpot/survivor mode → your Merkle payout (the proof is fetched for you). A fair refund works even on an `ended` pool that has not been settled on-chain yet — the claim settles it too; the other modes have to wait for the expiry transition. Creators can pass kind=creator_vest to claim their vested allocation (paid in COOK) after graduation. A PAIRED launch has nothing for holders to claim (toke…
| Parameter | Type | Description |
|---|---|---|
ref * | string | the token mint or the launchpad pool address (either works) |
kind | string | which claim to make (default auto — chosen from the pool state) |
claim_creator_fees Claim launch creator fees
Sweep the creator's share of trading fees (35% of the 1% trade fee) from a launchpad token you created, into your wallet as native COOK. Only the pool's creator can claim; fails early with the pending amount when nothing has accrued yet. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
ref * | string | the token mint or the launchpad pool address (either works) |
unwrap | boolean | unwrap the swept fees to native COOK (default true) |
get_nft_drops List NFT drops
Browse MomoSwap NFT launchpad drops: name/symbol, collection mint, phase, minted vs supply, graduation progress, floor price once graduated, royalty and the mint window. Phases: `upcoming` (not open), `live` (minting off the curve; holders can sell back), `sold-out` (waiting to graduate), `minting` (graduated at its target; the rest mint at random by request), `graduated`, `ended` (closed short; holders redeem a refund). Defaults to live drops. Use get_nft_drop for prices. Read-only — no key needed.
| Parameter | Type | Description |
|---|---|---|
limit | integer | max drops (default 20) |
status | string | filter (default live) |
get_nft_drop NFT drop detail
Full state of one MomoSwap NFT drop: phase, supply, curve quote for minting `count` items (fee included, price per item), the post-graduation request price, floor and wind-down refund, graduation target, royalty — and, for `owner` (default: this wallet), the items held, what selling one back would pay now, and the exit that applies in this phase. If the wallet created the drop, its unclaimed proceeds and, after a target graduation, the part of its share still held back (`creatorHeldBack`: released as items mint, forfeited after its deadline). Read-only.
| Parameter | Type | Description |
|---|---|---|
collection * | string | the drop's collection mint (or any of its items' mints) |
count | integer | items to quote a mint for (default 1) |
owner | string | wallet or .cook name whose items to list (defaults to your own wallet) |
nft_drop_mint Mint from an NFT drop
Mint items from a live MomoSwap NFT drop, priced off its bonding curve (each mint costs a little more than the last; the trade fee is on top). `count` 1–10, one transaction each, sent in order; if one fails the ones already minted are kept and reported. Each item is capped at `maxCookPerItem` (fee included) — or, without it, the current price plus `slippageBps` (default 100 = 1%) — and the program refuses to charge more. After a drop graduates at its target, a mint is a REQUEST: you pay now and a keeper settles a random remaining item within seconds. A wallet may hold up to 10 requests o…
| Parameter | Type | Description |
|---|---|---|
collection * | string | the drop's collection mint (or any of its items' mints) |
count | integer | items to mint (default 1) |
maxCookPerItem | the most one item may cost in COOK, fee included | |
slippageBps | integer | price tolerance when maxCookPerItem is not set (default 100 = 1%) |
nft_drop_sell Sell an NFT back to its drop
Sell an item back to its MomoSwap drop's bonding curve for COOK at the current price, minus the trade fee — the drop's guaranteed exit, available while the drop is live (or sold out and not yet graduated). The item goes into the pool's inventory. After graduation use nft_drop_redeem (floor) or list_nft instead. `minCook` refuses a sale below that. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
nftMint * | string | the item's mint |
collection | string | the drop's collection mint (looked up from the item when omitted) |
minCook | refuse unless the sale pays at least this much COOK | |
slippageBps | integer | price tolerance (default 100 = 1%) |
nft_drop_redeem Redeem an NFT drop item
Burn an item of a MomoSwap NFT drop for COOK from the drop itself: after graduation, the permanent floor (the locked share of the raise ÷ items outstanding — a redemption never moves it); for a drop whose window closed short, the wind-down refund (the raise ÷ items outstanding; the first refund also closes the drop on chain). Picks whichever applies; get_nft_drop shows both amounts. Burning is final — compare with list_nft first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
nftMint * | string | the item's mint |
collection | string | the drop's collection mint (looked up from the item when omitted) |
nft_drop_claim Claim NFT drop proceeds
For a drop's creator: claim the proceeds its creator vault holds (the creator's share of trade fees, and the graduation payout). A royalty partner, if the drop has one, is paid their share in the same transaction. Fails early when nothing has accrued. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
collection * | string | the drop's collection mint (or any of its items' mints) |
nft_drop_settle Settle or refund a queued NFT mint
After a drop graduates at its target, each mint is a request a keeper settles with a random item. When nft_drop_mint returned `pending` and the item still hasn't arrived, this pushes the drop's FIFO mint queue through this wallet's open requests (up to 10 per drop, all reported in `yourRequests`): each head whose randomness is ready is settled (its buyer gets the drawn item), each whose randomness expired (~3 minutes) is refunded (its buyer gets price + fee back). Requests ahead of yours go to THEIR buyers, never to you; you pay only network fees (a settle's rent is repaid in the same transact…
| Parameter | Type | Description |
|---|---|---|
collection * | string | the drop's collection mint (or any of its items' mints) |
nft_drop_graduate Graduate a sold-out NFT drop
Graduate a sold-out MomoSwap NFT drop (phase `sold-out` in get_nft_drop). Permissionless: anyone may send it, usually a keeper does. It locks the floor share of the raise for nft_drop_redeem, releases the creator's share to nft_drop_claim and ends sell-backs. A drop with a raise target graduates on the buy that reaches it, so this only applies at sell-out. Network fee only. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
collection * | string | the drop's collection mint (or any of its items' mints) |
create_nft_drop Launch an NFT drop
Launch a fixed-supply NFT collection on the MomoSwap NFT launchpad. Every image in `artDir` (PNG/JPEG/GIF/WebP, natural file-name order, optional Metaplex-style `<name>.json` beside each for name + traits) becomes one item. The art is uploaded to IPFS, the order is sealed behind a fairness commitment MomoSwap holds the seed for (so the creator cannot know which mint gets which piece), and the art stays hidden until the sale ends. Price: `startPriceCook` is the first item's all-in price; the curve ends near `curveMultiple`× that. At graduation `floorLockPct` of the raise becomes a permanent fl…
| Parameter | Type | Description |
|---|---|---|
artDir * | string | folder on this machine holding the art (2–10,000 images, max 25 MB each), inside the home directory or COOKIE_IMAGE_DIR, no hidden folders |
name * | string | collection name, max 24 bytes (items are `{name} #{n}`) |
startPriceCook * | the first item's price in COOK, trade fee included | |
symbol * | string | symbol, letters and digits, max 10 |
allowlist | array | wallets that may mint first, during the allowlist phase |
allowlistHours | number | length of the allowlist phase in hours (default 1) |
antiSnipe | boolean | limit each wallet during the opening minutes (default true) |
bannerPath | string | optional banner image file (~3:1) |
curveMultiple | number | last item's price ÷ first (default 4; the site offers 2, 4 and 9) |
description | string | collection description |
discord | string | Discord https URL |
dryRun | boolean | validate the art and preview the curve, raise and floor without uploading or signing |
durationHours | number | how long minting stays open, at most 720 (30 days, the program's cap) (default 24); a drop that does not graduate by then refunds holders |
floorLockPct | number | share of the raise locked forever as the floor at graduation, % (default 20) |
graduationTargetPct | number | graduate once the raise reaches this % of the sell-out raise; the remaining items then mint at random by request (default 100 = graduate at sell-out) |
imagePath | string | collection image file (defaults to the first piece of art) |
launchAt | string | ISO date-time to open minting, up to 30 days ahead (default now) |
maxPerWallet | integer | items per wallet, 0 = no limit (default 0) |
partnerSharePct | number | the partner's share, % (required with royaltyPartner) |
placeholderPath | string | image collectors see before the reveal (defaults to the collection image) |
royaltyPartner | string | optional plain wallet (not a program or token account) that shares the creator's royalty and proceeds |
royaltyPct | number | creator royalty on secondary sales, % (default 5; capped by the launchpad) |
telegram | string | Telegram https URL |
website | string | https URL |
x | string | X profile https URL |
reveal_nft_drop Reveal an NFT drop
For a drop's creator, once it sold out, graduated or its window closed: record the reveal seed on chain so anyone can check the item order against the commitment fixed at launch. Optional — MomoSwap publishes the art when the sale ends either way. Signs a login message, then the reveal transaction. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
collection * | string | the drop's collection mint (or any of its items' mints) |
loginSignature | object | external-signer mode only: the wallet's signature over the login `message` a previous call returned as needs_signature { kind: 'message' } |
create_pool Create a pool
Create a new pool for a token pair and seed it with an initial deposit (the deposit ratio sets the starting price). `dex` selects the venue: cookiebox-damm (default), cookiebox-clmm (concentrated liquidity, full-range seed, default 0.25% fee tier), or cookieswap-bamm (concentrated liquidity; fee tier/tick spacing chosen by `ammConfig`, full-range seed). Simulates before sending; caps the COOK side. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
amountA * | UI amount of token A to seed | |
amountB * | UI amount of token B to seed | |
tokenAMint * | string | first token mint |
tokenBMint * | string | second token mint (e.g. the COOK mint) |
ammConfig | string | BAMM only: AmmConfig address (selects fee tier/tick spacing); omit for the default |
config | string | PoolConfig address (DAMM only); omit for the default |
dex | string | venue (default cookiebox-damm) |
feeTier | number | CLMM fee tier in bps: 25 (default), 30, 100, 200, or 400 |
initialPrice | CLMM/BAMM only: starting price as tokenB per tokenA; omit to derive from the amounts |
add_liquidity Add liquidity
Add liquidity to a pool by opening a new position; the venue (Cookiebox DAMM v2, Cookiebox CLMM, or CookieSwap BAMM) is auto-detected from the pool. Concentrated-liquidity venues (CLMM/BAMM) open a full-range position by default. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
poolPk * | string | pool address (see get_pools) |
amountA | UI amount of token A — the most that leaves the wallet, transfer fee included | |
amountB | UI amount of token B — the most that leaves the wallet, transfer fee included |
remove_liquidity Remove liquidity
Remove liquidity from your position in a pool (venue auto-detected). `bps` is the fraction to remove for DAMM v2 and CLMM (default 10000 = all, which also closes a CLMM position); BAMM removes the whole position. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
poolPk * | string | pool address |
bps | integer | basis points to remove (default all) |
lock_liquidity Permanently lock liquidity (Cookiebox DAMM v2 / CLMM)
⚠️ IRREVERSIBLE. Permanently locks your liquidity in a Cookiebox position; the venue is auto-detected from the pool. DAMM v2 locks the position's unlocked liquidity; CLMM locks the WHOLE position (the program offers no partial or vesting lock). Locked liquidity can never be withdrawn and the position can never be closed, but fees stay claimable via claim_fees. Not supported on CookieSwap BAMM. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
poolPk * | string | Cookiebox DAMM v2 or CLMM pool address |
claim_fees Claim accrued LP fees
Claim the swap fees your liquidity position has accrued in a pool (venue auto-detected: Cookiebox DAMM v2, Cookiebox CLMM, or CookieSwap BAMM). Sweeps fees to your wallet without removing the position. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
poolPk * | string | pool address you hold a position in |
get_nft_listings List NFT listings (Baked Bazaar)
Active NFT listings on Baked Bazaar with prices in COOK, seller, and collection. Filter by `collection` (symbol or collection key) or `seller`, and sort by price (cheapest first) or recency. No wallet needed. Use to find NFTs to buy.
| Parameter | Type | Description |
|---|---|---|
collection | string | filter by collection symbol (e.g. GORI) or collection key |
limit | integer | max listings (default 20) |
seller | string | filter by seller wallet |
sort | string | sort key (default recent) |
search_nfts Search NFTs by name
Resolve an NFT or collection name to a mint by searching active Baked Bazaar listings by name, symbol, or collection — partial and case-insensitive — or by mint prefix. Returns matching listed NFTs (cheapest first) with mint, collection, price in COOK, and seller. Use this FIRST whenever the user names an NFT or collection to buy but you don't have its mint, then pass the chosen mint to get_nft / buy_nft. Only currently-listed NFTs are searchable. No wallet needed.
| Parameter | Type | Description |
|---|---|---|
query * | string | NFT name, collection symbol, or mint prefix, e.g. "cookhouse" |
limit | integer | max results (default 20) |
get_nft NFT details (Baked Bazaar)
Full detail for one NFT mint: metadata (name, image, attributes, collection), whether it's listed and at what price, the best current offer, and the collection floor. No wallet needed.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the NFT mint address (base58) |
get_wallet_nfts Wallet NFTs (Baked Bazaar)
NFTs held by a wallet, each with any active Baked Bazaar listing. Defaults to the configured wallet (COOKIE_PRIVATE_KEY); pass `wallet` to inspect any address (required in read-only mode).
| Parameter | Type | Description |
|---|---|---|
wallet | string | wallet address (base58) or .cook name; omit to use the configured wallet |
get_nft_offers NFT offers (Baked Bazaar)
Offers a wallet has made and offers it has received (bids on NFTs it holds), with prices in COOK. Defaults to the configured wallet; pass `wallet` to inspect any address. Use before accept_offer / cancel_offer.
| Parameter | Type | Description |
|---|---|---|
wallet | string | wallet address (base58) or .cook name; omit to use the configured wallet |
get_nft_market_stats NFT market stats (Baked Bazaar)
Marketplace-wide Baked Bazaar stats: active listing count, floor price, total and 24h volume, and sales counts (COOK). Optionally pass `collection` for a collection's supply and holder count. No wallet needed.
| Parameter | Type | Description |
|---|---|---|
collection | string | collection symbol (e.g. GORI) for collection-level stats |
list_nft List an NFT for sale (Baked Bazaar)
List an NFT you own for sale on Baked Bazaar at `price` COOK (creates the auction-house sell order). Simulates before sending; signs locally. Requires COOKIE_PRIVATE_KEY. The 1% marketplace fee and creator royalties are taken from the sale proceeds when it sells. `via: "momoswap"` lists a MomoSwap drop's item through MomoSwap instead: the same Baked Bazaar listing, plus MomoSwap's listing fee paid now (1% of the price, at least 0.001 COOK, never more), reported as `listingFee`. Only on request: it is the same listing with a fee on top, so it is never taken on its own.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the NFT mint you own |
price * | sale price in COOK, e.g. 12.5 | |
via | string | omit to list directly (no fee); "momoswap" to list a MomoSwap drop's item through MomoSwap, paying its listing fee now |
cancel_listing Cancel an NFT listing (Baked Bazaar)
Cancel your active Baked Bazaar listing for an NFT and reclaim it. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the listed NFT mint |
buy_nft Buy a listed NFT (Baked Bazaar)
Buy a listed NFT at its current listing price: funds escrow, bids, and settles the sale in one transaction; the NFT lands in your wallet. Optionally pass `maxPrice` (COOK) as a guard. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the listed NFT mint to buy |
maxPrice | refuse if the listing price (COOK) is above this |
make_offer Make an offer on an NFT (Baked Bazaar)
Place a public offer (bid) on an NFT at `price` COOK. The COOK is escrowed with the auction house until the offer is accepted or you cancel it. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the NFT mint to bid on |
price * | offer price in COOK |
cancel_offer Cancel an NFT offer (Baked Bazaar)
Cancel your active offer on an NFT and withdraw the escrowed COOK back to your wallet. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the NFT mint you bid on |
accept_offer Accept an offer on your NFT (Baked Bazaar)
Accept an offer on an NFT you own, selling it to the bidder for the escrowed COOK (minus the 1% fee and royalties). Takes the highest active offer unless you pass `buyer`. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
mint * | string | the NFT mint you own |
buyer | string | bidder wallet, if multiple offers exist |
get_bridge_tokens List bridgeable tokens (Cookie Chain ⇄ Solana)
List every token the Hyperlane bridge between Cookie Chain and Solana mainnet can move (e.g. COOK, SOL), read live from the chain — a token added to the bridge shows up here as soon as its route is live, with no update to this server. For each: the symbol, and per chain the route type (native coin / minted on arrival / locked in escrow), the mint (null for the chain's native coin) and decimals, plus `minimum`: the smallest amount bridge accepts, worth 15,000 COOK right now. Use it to find the `token` to pass to bridge. No wallet needed.
bridge Bridge a token (Cookie Chain ⇄ Solana)
Bridge a token 1:1 between Cookie Chain and Solana mainnet via Hyperlane. `token` is the symbol or mint (default COOK); get_bridge_tokens lists what can be bridged, including tokens added after this server was released. COOK: native COOK on Cookie ⇄ SPL COOK on Solana. SOL: native SOL on Solana ⇄ SOL on Cookie Chain (a token, mint 6tL24Fn7…onvucb — not Cookie's native coin). `direction` is 'cookie-to-solana' or 'solana-to-cookie'. `to` is the recipient on the DESTINATION chain (base58; both chains share your keypair, so it defaults to your own wallet). `amount` is a UI amount of the to…
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of the token to bridge, e.g. 5 — at least the amount worth 15,000 COOK | |
direction * | string | bridge direction |
createRecipientAccount | boolean | create the recipient's token account on the destination from this wallet if they have none (default true). False relies on the warp route's own ATA payer instead, and is refused when that payer cannot… |
to | string | recipient on the destination chain (base58); omit to bridge to your own wallet |
token | string | token to bridge: a symbol (e.g. COOK, SOL) or its mint on either chain; default COOK |
waitForDelivery | boolean | poll the destination chain for delivery (up to ~3 min) before returning |
bridge_status Bridge delivery status
Check whether a bridged transfer (any token) has been delivered on the destination chain, by its Hyperlane message id (returned by `bridge`). `direction` must match the original transfer. Returns delivered true/false and the destination-chain delivery tx once relayed. No wallet needed.
| Parameter | Type | Description |
|---|---|---|
direction * | string | the direction of the original transfer |
messageId * | string | the Hyperlane message id from bridge (0x… 64 hex chars) |
resolve_domain Resolve a .cook name
Look up a .cook name on the CookOven name service: who owns it, when it was registered, its resolver/metadata pointers, and whether it is the owner's primary name. If the name is NOT registered, returns availability plus the live registration price (short 1–3 character names cost more than 4+ character ones). Use this before register_domain — it is free and touches no key. For the reverse direction (wallet → names) use get_owned_domains.
| Parameter | Type | Description |
|---|---|---|
name * | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
get_owned_domains List a wallet's .cook names
Every .cook name a wallet owns, plus which one is its primary (the name apps show instead of the raw address). Defaults to the configured wallet; pass `wallet` to inspect any address or .cook name. Reads the registry on-chain — no indexer, no key needed.
| Parameter | Type | Description |
|---|---|---|
wallet | string | wallet address or .cook name; omit to use the configured wallet |
register_domain Register a .cook name
Claim an unregistered .cook name on the CookOven name service. ⚠️ EXPENSIVE and PERMANENT: the price is set in USD by the registry and paid in COOK — thousands of COOK at the current config — and registration is non-refundable with no expiry. `maxPriceCook` is REQUIRED as an explicit spend confirmation: call resolve_domain (or this tool without it) to learn the live price first, then pass that number. Refuses before signing if the name is taken or the price exceeds `maxPriceCook`. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
name * | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
maxPriceCook | the most COOK you accept paying; omit to be told the live price without spending anything | |
setPrimary | boolean | also make it this wallet's primary name, in the same transaction (default false) |
set_primary_domain Set or clear the primary .cook name
Point this wallet's primary record at one of the .cook names it owns, so apps label it by that name instead of its address. Pass `clear: true` instead of `name` to unset it (the wallet keeps the name either way). Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | unset the current primary name instead of setting one |
name | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
transfer_domain Transfer a .cook name
Hand a .cook name you own to another wallet. FINAL — only the new owner can move it again. If the name is this wallet's primary, the primary record is cleared in the same instruction so it cannot point at a name the wallet no longer owns. The recipient can be given as an address or as a .cook name. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
name * | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
to * | string | recipient wallet address or .cook name |
update_domain Update a .cook name's pointers
Set or clear the `resolver` and `metadata` pubkey pointers on a .cook name you own. The program stores them without interpreting them — they are hooks for apps. Pass "none" to clear one. At least one of `resolver`/`metadata` is required. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
name * | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
metadata | string | metadata account (base58), or "none" to clear it |
resolver | string | resolver account (base58), or "none" to clear it |
get_domain_listings Browse .cook names for sale
Every .cook name listed for sale on the CookOven domain marketplace, read straight from the program — no indexer, no key needed. Filter by `name` (substring match), `seller`, `maxPriceCook` or `maxLength` (short names are the scarce ones), and sort by 'price' (cheapest first), 'length' or 'recent' (default). Also returns the live marketplace fee, which the SELLER pays out of the sale price, and the floor price of the matched set. Use resolve_domain for one specific name, or register_domain for a name nobody owns yet — the market only holds names that are already registered.
| Parameter | Type | Description |
|---|---|---|
limit | integer | max listings to return (default 20) |
maxLength | integer | only names with at most this many characters |
maxPriceCook | only listings at or below this price in COOK | |
name | string | only listings whose name contains this text (the .cook suffix is ignored) |
seller | string | only listings from this wallet address or .cook name |
sort | string | price = cheapest first, length = shortest first, recent = newest first (default) |
list_domain List a .cook name for sale
Put a .cook name this wallet owns up for sale on the CookOven domain marketplace at `priceCook`. ⚠️ The name moves into the marketplace ESCROW in the same instruction: until the listing is bought or cancelled, the registry reports the escrow as its owner, so this wallet cannot transfer the name, update its pointers or set it as primary, and the name no longer resolves to a payable address. cancel_domain_listing reverses it at any time. There is no re-price instruction — cancel and list again. Costs only the listing account's rent (~0.0018 COOK, refunded when the listing ends); the market…
| Parameter | Type | Description |
|---|---|---|
name * | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
priceCook * | asking price in COOK, e.g. 25000 |
buy_domain Buy a listed .cook name
Buy a .cook name that is listed for sale, paying the seller and the marketplace fee in one transaction; the name leaves escrow and belongs to this wallet, permanently. ⚠️ EXPENSIVE and FINAL: listings run into the millions of COOK. `maxPriceCook` is REQUIRED as an explicit spend confirmation — the instruction carries no price argument, so this cap is the only guard. Called without it, this quotes the live asking price and spends nothing. Use get_domain_listings to find names in budget. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
name * | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
maxPriceCook | the most COOK you accept paying; omit to be told the asking price without spending anything |
cancel_domain_listing Unlist a .cook name
Take a .cook name this wallet listed back off the CookOven domain marketplace. The escrow returns it to this wallet and the listing rent is refunded, so transfer_domain, update_domain and set_primary_domain work on it again. Only the wallet that created the listing can cancel it. Simulates before sending. Requires COOKIE_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
name * | string | the .cook name, with or without the suffix (e.g. "bot" or "bot.cook") |
get_lending_markets Aera lending markets
Every reserve of the Aera money market: total supplied / borrowed / available, utilization, supply and borrow APR (projected to the current slot), caps, origination fee, collateral terms (loan-to-value, liquidation threshold, bonus, haircut), the share token (aCOOK / abCOOK) and its exchange rate, and each oracle's health. Only `borrowEnabled` reserves can be borrowed (COOK) and only `collateralEnabled` ones can back a loan (bCOOK). No key needed.
get_lending_position A wallet's Aera position
What a wallet has on Aera: share tokens held per reserve and what they redeem for, and its obligation — collateral, debt (interest projected to now), health factor (1.0 = liquidation line), borrow headroom and how much more COOK can be borrowed. Defaults to the configured wallet; pass `wallet` for any address or .cook name. No key needed.
| Parameter | Type | Description |
|---|---|---|
wallet | string | wallet address or .cook name; omit to use the configured wallet |
lend Supply to Aera
Supply COOK (or bCOOK) to its Aera reserve to earn the supply APR. Mints share tokens (aCOOK / abCOOK) to your wallet that redeem for more of the asset as interest accrues; withdraw with `withdraw_lend`. Respects the reserve and per-wallet supply caps (refuses before signing). To use bCOOK as loan collateral call `deposit_collateral` instead — shares in the wallet do not back a loan. Simulates first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of the asset to supply, e.g. 1000 | |
asset * | string | reserve asset: `COOK` or `bCOOK` (case-insensitive), a share-token symbol (`aCOOK`), or a mint |
withdraw_lend Withdraw from Aera
Redeem share tokens held in your wallet (aCOOK / abCOOK) for the underlying asset. `amount` is in the ASSET (what you want back), or "all" to redeem every share you hold. Limited by the reserve's available liquidity (the rest is lent out). Shares locked as collateral are not in the wallet — use `withdraw_collateral` for those. Simulates first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of the asset, or "all" | |
asset * | string | reserve asset: `COOK` or `bCOOK` (case-insensitive), a share-token symbol (`aCOOK`), or a mint |
deposit_collateral Deposit collateral on Aera
Lock bCOOK as collateral so you can `borrow` COOK against it. One transaction: supplies the bCOOK to its reserve, deposits the minted abCOOK shares into your obligation (created on first use). `amount` is in bCOOK. Set `useHeldShares` to deposit abCOOK you already hold instead of supplying new bCOOK. Collateral earns the bCOOK supply APR while locked. Simulates first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of bCOOK to lock as collateral | |
asset | string | collateral asset; only needed if more than one reserve is collateral-enabled |
useHeldShares | boolean | deposit share tokens already in the wallet instead of supplying new bCOOK |
withdraw_collateral Withdraw collateral from Aera
Take collateral back out of your obligation and redeem it to bCOOK in the same transaction (`keepShares` leaves the abCOOK shares in your wallet instead). `amount` is in bCOOK, or "all". Refuses before signing if the remaining loan would exceed its loan-to-value limit or leave the health factor under `minHealthFactor` (default 1.1; 1.0 is the liquidation line). Frozen while the bCOOK oracle is unhealthy. Simulates first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of bCOOK, or "all" | |
asset | string | collateral asset; only needed with several |
keepShares | boolean | keep the abCOOK share tokens instead of redeeming them for bCOOK |
minHealthFactor | number | refuse if the health factor after would be lower (default 1.1) |
borrow Borrow COOK on Aera
Borrow COOK against your deposited collateral. `amount` is the debt you take on; the origination fee (see get_lending_markets) is deducted from the payout and still owed. Interest accrues per slot at the borrow APR; repay any time with `repay`. Refuses before signing when the loan-to-value limit would be exceeded or the health factor would fall under `minHealthFactor` (default 1.1; 1.0 is the liquidation line — below that your collateral can be seized at a bonus to the liquidator). Needs `deposit_collateral` first. Simulates first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in externa…
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of COOK to borrow (debt taken on, before the fee) | |
asset | string | asset to borrow; only needed with several |
minHealthFactor | number | refuse if the health factor after would be lower (default 1.1) |
repay Repay an Aera loan
Repay COOK debt. `amount` in COOK, or "all" to clear the loan (wraps a few slots of extra interest so it cannot come up short; the excess is returned in the same transaction). Overpaying is safe: the program only takes what is owed. Repay works even while the protocol is paused. Simulates first. Requires a signer: COOKIE_PRIVATE_KEY locally, or in external-signer mode this returns `needs_signature` for the user's wallet to sign (see submit_signed_tx).
| Parameter | Type | Description |
|---|---|---|
amount * | UI amount of COOK, or "all" | |
asset | string | asset to repay; only needed with several |