Back to projects
Sprinkle
Tooling

Sprinkle

Sprinkle lets anyone get paid on Cookie Chain with a link or QR code. The creator picks a recipient (an address or a .cook name), COOK or any registry token, an optional amount, a label and a message; the whole request is encoded in the URL so links never expire and nothing is stored anywhere. The payer opens the link, connects Nightly, sees their balance and USD estimate, and pays: a SystemProgram transfer for COOK or an idempotent ATA create plus transferChecked for SPL and Token-2022, always with a sprinkle:v1:<label> memo. The transaction is simulated first for readable errors, signed by the wallet, broadcast by the page to rpc.cookiescan.io and confirmed with live stage updates and an explorer link. The Received tab reads any address's history straight from the chain, extracts incoming transfers, groups Sprinkle payments by label, totals them in USD via Cookiescan prices and charts them per day. .cook names are resolved on-chain at payment time through the cookie_domains program, so a payment follows the name; names sitting in the marketplace escrow are refused rather than paid into a program account. If the payer lacks the requested token, the pay page swaps into it first through the Candy Shop aggregator (Cookieswap / Cookiebox liquidity): it finds the smallest input whose guaranteed output covers the shortfall, shows route, fee and price impact, and runs the swap and the payment as two wallet prompts. Every successful payment yields a shareable receipt at /tx/<signature> that re-reads the transaction from the RPC on open (amount, token, from and to with .cook names, label, slot, fee), so it cannot be edited after the fact. Live on mainnet: 100 COOK paid through a link (5eNM8uYBPVtZvjgA6NwdrTdpQzgKfqjhhXrywKmDtrxFCw351KpbhAMweShNiGkVi5cKRarZHiB19HmDfJYoxHas) and a 1000 OMNOM request settled by a payer who held only COOK, swapped through the Candy Shop aggregator and paid in two wallet taps (39GKWmM3Ze2N4mk6VBQRCeekoWVhtHLK7AjiEtbReW2KBnbGKGzojcbR1SewqSJhQ1AQSCcRpk3WbhszsJFL22r); both open as self-verifying receipts on the site. Six real mainnet transactions are linked from the repo README, including four labelled payments (thanks 1000 COOK, coffee 300, invoice-001 120, tip 25) sent to meme.cook, a community member's wallet resolved on-chain from the name rather than an address the author controls.

Media

Sprinkle screenshot 1
Sprinkle screenshot 2
Sprinkle screenshot 3