---
name: menu
description: Pick the coin your $MENU creator-fee share is paid in, and read MENU's stats, menu, payout tape and your own wallet. For humans and agents.
---

# MENU ($MENU): get paid in whatever coin you want

$MENU is a pump.fun coin on Solana. 100% of its creator fees go to $MENU holders, pro rata to what they hold.
Every holder picks ONE payout coin: any Solana token with a live route (pump.fun curve coins included), or
plain SOL. No pick means SOL.

Base address: `https://paidmenu.fun`

## The rules, with every number

- Creator fees are claimed into the vault once at least 0.01 SOL is waiting. The crank runs every hour.
- Holders are snapshotted every run. Not counted: the bonding curve, the PumpSwap pool, the vault, a list
  of excluded wallets, program addresses (pools, lockers), and anyone under 10,000 $MENU.
- New SOL is split pro rata to balance at that snapshot, in whole lamports. Rounding dust is carried to the
  next split. The vault keeps 0.02 SOL for network fees.
- You are paid once your unpaid share reaches 0.02 SOL (the floor). Under it, your share keeps adding up.
- SOL pick: you get SOL. Token pick: everyone who picked that coin is paid from one swap (Jupiter, or the
  pump.fun curve if Jupiter has no route). You get your share of the tokens, pro rata to your lamports.
- If you have no token account for your coin, it is opened for you and its rent (about 0.002 SOL for a
  normal token) comes out of your own payout. Your history shows it as `ata_rent`.
- If your coin cannot be bought 3 runs in a row, that payout is sent in SOL instead. Your pick stays.

## Pick your payout coin

1. Build the message. Use the coin's mint address, or the word `SOL`, and the unix time in seconds:

   ```
   menu:pick:v1:<mint or SOL>:<unix seconds>
   ```

   Example: `menu:pick:v1:SOL:1795000000`

2. Sign the exact UTF-8 bytes of that message with your wallet (ed25519, the same as Phantom's or
   Solflare's "Sign message"). It is not a transaction. It costs nothing and moves nothing.

3. Send it:

   ```
   POST https://paidmenu.fun/api/pick
   Content-Type: application/json

   { "wallet": "<your address>", "mint": "<mint or SOL>", "ts": 1795000000, "signature": "<base58 or base64>" }
   ```

   `mint` and `ts` must be exactly what you signed.

Rules for a pick:
- `ts` can be at most 10 minutes old and at most 2 minutes in the future.
- The latest pick wins. A pick with an older or equal `ts` than your current one is refused (409 `stale`).
  Sending the same signed pick again changes nothing (`changed: false`).
- The coin must exist and be a token MENU can send. Coins with a transfer hook, non-transferable coins and
  coins whose accounts start frozen are refused.
- The coin must have a live route: Jupiter quotes SOL to it for 0.01 SOL, or it is still on a live pump.fun
  bonding curve.
- Limits: 12 picks per wallet per hour, 60 per caller address per hour.

Success:

```json
{ "ok": true, "changed": true, "wallet": "<address>",
  "pick": { "coin": "<mint or SOL>", "symbol": "WIF", "name": "dogwifhat", "image": "https://...", "ts": 1795000000, "route": "jupiter" } }
```

A refusal is `{ "error": "<code>", "message": "<plain English>" }`. The codes are `bad_wallet`, `bad_mint`,
`bad_ts`, `bad_signature` (401), `pick_expired`, `pick_in_future`, `stale` (409), `not_found`,
`not_a_token`, `blocked_extension`, `unroutable`, `route_check_down` (503, try again) and `rate_limited` (429).

### Signing in code

Node (tweetnacl + bs58, with your keypair):

```js
import nacl from 'tweetnacl';
import bs58 from 'bs58';
const ts = Math.floor(Date.now() / 1000);
const mint = 'SOL'; // or a mint address
const message = `menu:pick:v1:${mint}:${ts}`;
const signature = bs58.encode(nacl.sign.detached(new TextEncoder().encode(message), keypair.secretKey));
await fetch('https://paidmenu.fun/api/pick', { method: 'POST', headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ wallet: keypair.publicKey.toBase58(), mint, ts, signature }) });
```

Browser (Phantom):

```js
const { signature } = await window.solana.signMessage(new TextEncoder().encode(message), 'utf8');
// signature is a Uint8Array: send it as base58 (bs58.encode) or base64
```

## Read

All of these are GET and public JSON. Lamport amounts are decimal strings. Each also has a plain-number SOL
twin ending in `_sol`.

- `https://paidmenu.fun/api/stats`: `fees_claimed`, `paid`, `payouts`, `wallets_paid`, `owed`, `holders_eligible`,
  `wallets_with_picks`, `holders_with_picks`, `payout_floor`, `last_crank`, `snapshot_at`, `vault`,
  `menu_mint`.
- `https://paidmenu.fun/api/menu`: `{ coins: [...] }`, the payout coins, most picked first. Each one has `mint` (or
  `SOL`), `symbol`, `name`, `image`, `holders` (holders paid in it), `picks`, `paid` (SOL paid into it),
  `payouts`, and `tokens_paid`.
- `https://paidmenu.fun/api/tape?limit=50`: `{ payouts: [...] }`, the newest confirmed payouts. Each one has `wallet`,
  `coin`, `symbol`, `lamports_in`, `ata_rent`, `tokens_out`, `tokens_out_ui`, `sig` + `tx` (Solscan link),
  `swap_sig` + `swap_tx`, and `note`.
- `https://paidmenu.fun/api/me?wallet=<address>`: your `balance` at the last snapshot, `share_pct`, `accrued` (owed, not
  paid yet), `in_payout`, `paid`, your `pick`, and your last 20 `payouts`.

Nothing here can move funds. Only the hourly crank pays out, and it only follows the rules above.
