Docs

Ring Gift is a launchpad for coins that support a cause, built on Helius Privacy Rings. Gifts are private; totals are public. This page explains how, and what you have to trust.

Coins

A launcher picks a cause, names the coin and optionally sets a dev buy. Ring Gift then builds one Solana transaction that the launcher approves once (the same system as AGENTZ):

  • compute budget;
  • pump.fun create_v2: Token-2022 coin, 1B supply, bonding curve, no mint or freeze authority. Its creator is the cause (its verified public wallet, or its vault until then), so pump.fun pays every creator fee of the coin to the cause;
  • the launcher's token account and dev buy on the fresh curve (optional);
  • a 0-lamport touch of the Ring Gift registry address and a memo ringgift:v1:launch:<mint>:<cause>.

It fits under Solana's 1,232-byte limit with a v0 message and an address lookup table holding pump.fun's static accounts. It lands whole or not at all. Explore reads the registry back and checks, for every coin, that its pump.fun creator really is its cause.

Who is the creator?

The charity's Ring Gift vault. Charities don't hold Solana wallets themselves; donate.gg receives on their behalf. Every hour the vault claims its fees on pump.fun and sends them to the charity through donate.gg (see Payouts).

Every launch is checked before your wallet opens: the exact transaction is simulated on the cluster, and your balance is checked. The longest allowed launch (32-character name, 10-character ticker, 120-character metadata URL, with a dev buy) is 1,113 bytes and about 241,000 compute units, under Solana's 1,232 bytes and our 400,000 limit.

Ring Gift takes no fee. pump.fun's own trading and creator fees apply; the creator fee rate is read live from pump.fun's program.

Launches are open for any active charity on donate.gg once the server has vault keys.

Cause vaults

Every cause has a vault: a Solana keypair derived as HMAC(VAULT_MASTER_KEY, cause id) that owns a Privacy Rings private wallet, published on the Rings registry so anyone can send to it privately. The operator key pays its rent and fees, so the vault never receives a public transfer.

Giving privately

A gift takes one message signature (the first time, to open your private wallet) and one approval:

  • You sign one plain-text message. Your browser hashes the signature into your private wallet's key. It stays in the tab.
  • One normal transfer from your wallet tops up the private wallet with everything the gift needs: the amount, registration rent the first time, and every network fee. That's the only transaction you approve.
  • The private wallet then signs the rest itself, in the tab: registration on the Rings registry (once), the deposit into the Ring, and the transfer.
  • Your gift is a Rings private transfer to the cause vault. Its amount is encrypted; the explorer shows a Rings transaction without the amount, and without linking your private wallet to the vault.

Gifts are open for any active charity on donate.gg.

Charities and payouts (donate.gg)

Causes are real charities listed on donate.gg, read from its public API. Each one has a donate.gg config; Ring Gift pays it through donate.gg's Donation Relay program on Solana (RLAYHr9TRFcKB2ubYQhspcnXiaGpaVzNQvHytt47RZu, audited by Halborn), which converts to USDC and distributes to the charity. donate.gg's fee on a charity's default config is 3%.

Every hour, for each charity in the registry, Ring Gift's server: withdraws the vault's sealed gifts from the Ring to the vault's public account, claims the coins' creator fees from pump.fun, then donates the balance (minus a small rent reserve) to the relay with a ringgift:v1:payout:<charity>:<lamports> memo. Those memos are what the public total counts as paid out.

Charities onboarded on donate.gg receive USDC. For charities not onboarded yet, donate.gg holds the funds in custody (Fireblocks) until the charity claims them. Each charity page says which.

donate.gg batches donations until they reach 1 USDC, so payouts aren't instant. No charity has endorsed Ring Gift; donate.gg is an independent service.

Public totals

The server decrypts the vault's own balance and publishes a statement: balances per asset, amounts already paid out, creator fees pump.fun holds for the vault (public on-chain), slot and time. It's signed with the operator key (ed25519 over canonical JSON). Your browser checks the signature on every cause page. Individual gifts never appear in a statement.

Payouts go from the vault to the cause's public wallet. They're normal transfers anyone can see, so they can be compared with the published totals.

What you trust

  • The operator. During the alpha the vault keys live on Ring Gift's server. You trust it to publish totals honestly and to pay out. Between two payouts the vault holds funds; the server can see each vault's balance and the gifts it received, but not who sent them, and never your private wallet's key.
  • Privacy Rings. Alpha software from Helius. Proofs run in an attested TEE prover; payloads are encrypted to it before leaving your browser.
  • donate.gg. Payouts go through donate.gg. You trust it to convert and deliver to the charity, as its own donors do. No charity has endorsed Ring Gift.

Addresses

  • Rings program: ring1GaLCuJnkUMVkX2JeZLTTX17wKsV4fZmPVzXANW
  • Registry program: regy3WAeRXMYuMYxr5iK3Bf9Arr3PcxGxyzAddbiqDQ

API

  • GET /api/causes/:id: vault address and signed total (or configured: false).
  • GET /api/charities?term=: donate.gg charity search (featured list without a term).
  • GET /api/cron/sweep: hourly payout job (needs CRON_SECRET).
  • GET /api/launches: coins from the on-chain registry, each with its creator check.
  • GET /api/pump-fees: pump.fun's creator fee rate, read on-chain.
  • POST /api/upload: coin image and metadata to IPFS (Pinata).
  • GET /api/sol-price: SOL/USD read on-chain from Pyth.
  • /api/rpc, /api/spr/*, /api/registry: proxies that keep the Helius key on the server.