Docs
Tilly is a till for businesses that take Solana payments. Customers pay by QR or link, the money lands in a shielded balance on Helius Privacy Rings, and your accountant exports the books with a view key.
How a payment works
- You or a cashier create an invoice: amount, asset (USDC, SOL or a token), memo, expiry.
- Tilly binds the invoice to a fresh receiver from your pool. One receiver per invoice, never reused.
- The customer pays one of two ways:
- Regular wallet (Phantom, Solflare): a Solana Pay transaction request. The wallet asks our endpoint for the transaction and signs one Rings deposit with two entries: your receiver (amount minus fee) and Tilly's fee.
- Shielded balance: a transfer inside Rings from the payer's shielded owner to your receiver and Tilly.
- Tilly reads the amount from the receiver's notes with your view key, marks the invoice paid and fires your webhook.
Invoice states: open, paid, underpaid, overpaid (refund flow), expired (a late payment is still credited and flagged), settled after you consolidate.
A plain Solana Pay transfer request cannot call Rings. Wallets that only support transfers can use an optional intake address that Tilly shields within a minute. It is custodial for that minute and off by default.
Who sees what
Rings hides amounts, not owners. Who deposits, who withdraws and the Rings owner tags are public on the default ring, which is the only one live today.
| Event | Public | Hidden |
|---|---|---|
| Customer pays from a regular wallet | Payer wallet, amount, receiver tag, fee entry | Nothing on the way in; the money is shielded from then on |
| Customer pays from a shielded balance | Payer ring tag, receiver tag, fee tag | Amounts |
| Two invoices | Two unrelated fresh receivers | That both are yours, until you consolidate them |
| Consolidation, payouts, refunds inside the shield | Owner tags on both sides | Amounts |
| Withdraw to a public wallet | Withdraw owner, destination, amount | Which sales it came from |
So a tracker or Bubblemaps cannot add up your daily takings or tie invoices together, but anyone who decodes Rings sees which tags move money to which. Tilly says it plainly instead of promising that nobody can link anything.
Keys and custody
By default Tilly cannot move your money. Your wallet derives a merchant root in the browser and uploads only receivers' public data and view keys. Payouts, refunds and consolidation are signed in your browser.
- Leaked view keys expose your sales history. They cannot spend.
- Opt-in and capped: a refund pocket held by Tilly (up to 200 USDC a day), the intake path above, and keeper-held receivers (up to 2,000 USDC per merchant) if your browser cannot sync from view keys.
Staff passkeys
You add staff with a wallet-signed message. Each staff member uses a passkey on their own device; every action is a passkey signature over tilly:v1:<action>:<sha256(payload)>:<expiry>:<nonce> that Tilly checks (P-256, nonce, expiry, sign count).
- Cashier: create invoices, see their status.
- Manager: plus refunds up to a cap and CSV export.
Passkeys authorize requests to Tilly only. Rings keys are Ed25519; a passkey can never own or move a note.
CSV and webhooks
Your accountant gets the receivers' view keys (or a read token) and exports GET /api/export.csv?from&to:
ts,invoice_id,sig,asset,amount,fee,payer_tag,path,status,memoWebhooks fire on invoice.paid, invoice.overpaid, invoice.expired and refund.sent. Retries at 1 m, 5 m, 30 m, 2 h and 12 h; deduplicate by id. Verify the signature:
// Tilly-Signature: t=<ts>,v1=<hex>
const [t, v1] = header.split(',').map((p) => p.split('=')[1]);
const mac = hmacSha256(secret, t + '.' + rawBody); // hex
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
const ok = fresh && timingSafeEqual(mac, v1);API
| Route | Who | What |
|---|---|---|
POST /api/merchant | wallet | Register a merchant, webhook URL and secret |
POST /api/receivers | wallet | Upload a batch of receivers (public data + view keys) |
POST /api/invoice | wallet or staff | {amount, asset, memo, expiresAt, ref?} returns invoiceId, receiver, payUrl, solanaPayUrl |
GET /api/invoice/:id | anyone | Status only: open, paid, expired |
GET|POST /api/pay/:id | wallet app | Solana Pay transaction request: label and icon, then the deposit transaction |
POST /api/staff | wallet | Add a passkey with a role |
POST /api/refund | manager | Refund from the capped pocket, or queue it for your wallet |
GET /api/export.csv | view key | The books |
GET /api/webhooks/deliveries | wallet | Delivery log |
Invoice ids are random 128-bit values; the public status route never shows amounts beyond what the payer saw.
Fees
At launch: 0.5% of each payment, minimum 0.01 USDC, paid as its own entry inside the payment. No subscription. The Tilly coin and its creator fees are not a source of payouts to anyone.