Beneficiaries
A beneficiary is something a donation can pay. Config and coin reads identify each selection by itstype, id and weight.
Read a config’s beneficiaries for their public profiles and any campaign’s weighted beneficiaries.
An id is opaque. Do not parse it or assume its format.
A reference says nothing about how the beneficiary looks. To show one, ask for its summary. The
same seven fields come back from a search, from the lookup
GET /v2/beneficiaries/lookup?ids=, and at the
start of a full read:
nameandimageUrlcan benull. Show your own fallback.urlis the beneficiary’s page on donate.gg. Linking to it is welcome. It isnullwhen there is no page: a charity has one only once it has signed up on Donate.sourceis set for a campaign:donatefor one created on donate.gg,tiltifyfor one imported from Tiltify. It isnullfor a charity.availableisfalsefor a recipient that is withheld or does not exist. See below.
GET /v2/charities/{charityId} or
GET /v2/campaigns/{campaignId}.
Campaign imports from Tiltify are not open in production yet. Until they are, production returns
no campaign with
source: "tiltify".Recipients that are withheld
A config is permanent, so it can name a charity that has since been hidden or disabled, or that has opted out of Donate, or a campaign that has since been hidden. The config still pays it, and no response ever leaves it out. Where you ask how to show it, the API answers with a stand-in:available: false, a neutral name and image, and nothing of the recipient’s own. Show the
stand-in as it is and do not link it.
A recipient that is withheld has the
exact rules.
People and other kinds
A config created on donate.gg itself can pay a person directly. You cannot name a person when you create a config through the API, and a config or a coin you read can hold a reference with"type": "user". It resolves to a summary like any other reference, and there is no fuller read
for it.
More kinds of recipient will be added, and research is the next one. Every kind has the same
summary. Show a type you do not know from its summary fields, and add its details later.
Configs and weights
A config is a permanent split: one to five beneficiaries and the weight each receives. This is the body that creates one:- A config is recipients and weights, and nothing else. It has no name, no logo and no fee.
- Weights are relative, not percentages. Weights
3and1mean three quarters and one quarter. To show a percentage, computeweight / sum of weights. A weight is a positive whole number. A response returns it as a string, and a request accepts a number or the same string. - A config is permanent. It cannot be edited or deleted, and its id can receive money for ever. To change a split, create another config and use its id from then on. The old id keeps working.
- The same request returns the same config. For your project, the same beneficiaries and
weights always give the same config. The first request answers
201and a repeat answers200with the same body, so a retry is safe. - The id is 32 bytes, written twice.
idis lower-case0xhex, thebytes32an EVM donation names.idBase58is the same bytes as a Solana public key. An API path accepts either. - A config never changes, so keep it. Cache a config for as long as you like.
- A campaign can count for more than one receiver. A config pays at most five receivers. A
charity counts as one, and so does an imported campaign. A campaign created on donate.gg
forwards its share to its own receivers and counts once for each of them. A config that would
pay more than five in all is refused with
400 VALIDATION_ERROR, even with fewer than five beneficiaries. To check a mixed selection in the picker, add thereceiverCountfrom each search result.
POST /v2/configs, read any config with
GET /v2/configs/{configId}, and list your own with
GET /v2/configs.
Fees
Donate keeps a fee from each donation. A config does not carry it: the fee is set by Donate’s fee policy when the donation settles, and depends on whose config the donation goes through.GET /v2/configs/{configId}/fee quotes the fee a donation would
pay now:
chainIdis the chain the donor pays on:101for Solana, or an EVM chain that bridges to Solana. Any other chain answers400.creditedAddressis the address the donation is credited to on-chain:credited_toon Solana,creditedToon an EVM chain. For a launchpad’s coins that is its registered donation source. For a donate button it is usually the donor’s wallet.feeBpsis the fee in basis points, as a number:2000is 20%.evaluatedSlotis the Solana slot the policy was read at.- The quote is an estimate, not a locked rate. A Solana donation is priced by the slot it lands in. A bridged EVM donation is priced by the slot its USDC is delivered on Solana.
- Ask again just before the donor signs. If the quote answers
503, show that the fee is unavailable instead of guessing. - A tip is separate. The fee is never more than what is left after the tip:
min(floor(gross × feeBps / 10000), gross − tip).
The life of a donation
Every donation settles as USDC on Solana, whichever chain the donor paid on.1
The donor's transaction confirms
The transaction names a config id. A Solana donation enters the config’s vault. An EVM donation
is held in escrow on its chain and shows up as a transfer in progress.
2
Donate converts and batches it
EVM funds are bridged to Solana as USDC. Solana tokens are swapped to USDC when needed. A batch
waits until it is worth 1 USDC, so a small donation can wait for others to the same config.
3
USDC is distributed
USDC is paid on Solana to each beneficiary by weight, with the fee and any tip accounted for
separately. The donation is final when that transaction is final.
pending until it is distributed and settled after. A total is one stats object
with pendingUsdE6 for donations still in flight, settledUsdE6 for settled ones, and
totalUsdE6, their sum, which is the one to show.
Totals has every field, and
Track a donation covers statuses and polling.
Coins and donation sources
A coin is a token whose fees donate through a config. The API uses that one word for it. The word token only ever means the currency of an amount.- A coin points at a config. The link lives on-chain, in the launchpad’s fee program, and stores
the config’s
idBase58. Donate reads it from the chain and remembers the read for up to 20 minutes, soGET /v2/coins/{chainId}/{address}shows the config a coin pays as of the last read, plus the ids of every config it paid before. A coin whose fees were pointed somewhere else hasconfig: nulland keeps its totals. - The coin read finds that link for the coins of one launchpad: the one whose coins
GET /v2/coinslists. A coin of any other launchpad reads withconfig: nullonce it has donated, and answers404before. - A donation source is the on-chain address a launchpad’s fee program donates from. Donate
registers it to the launchpad’s project. A donation credited to that address, whose message is
<coin address>,<creator address>, is counted for that coin and that creator. - Fees reach Donate when they are claimed and donated, which happens in batches. A coin’s total moves in steps, not with every trade.
- Donate records a coin with its first donation, and lists it from then on. Before that the coin read answers from the chain alone: the config it pays, zero totals and no rank.
- On production the coins are on Solana, chain id
101. A coin read on any other chain answers404.