> ## Documentation Index
> Fetch the complete documentation index at: https://docs.donate.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Concepts

> Beneficiaries, configs, fees, the life of a donation, and coins

Everything in the API is one of three things: someone who can receive money, a rule for splitting
money, or money that was given.

## Beneficiaries

A beneficiary is something a donation can pay. Config and coin reads identify each selection by its `type`, `id` and `weight`.
[Read a config’s beneficiaries](https://docs.donate.gg/api-reference/configs/list-beneficiaries.md) for their public profiles and any campaign’s weighted beneficiaries.

| `type` | What it is | `id` looks like |
| - | - | - |
| `charity` | A registered non-profit listed on Donate | `9b4dae4e-d8c1-4322-a594-35a4858296b2` |
| `campaign` | A fundraiser, created on donate.gg or imported from one | `cmr2icrm701xu04jxvybvmgwn` |

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=`](https://docs.donate.gg/api-reference/beneficiaries/list-by-ids), and at the
start of a full read:

```json theme={null}
{
  "type": "campaign",
  "id": "cmr2icrm701xu04jxvybvmgwn",
  "available": true,
  "name": "Kintara for St. Jude",
  "imageUrl": "https://donategg-user-assets-prod.s3.us-east-1.amazonaws.com/image/e6a658a4-ee8a-4428-960d-56e16bfe9c91/1874bf55-7026-40be-a1ff-5fbedb6a0fd1.png",
  "url": "https://www.donate.gg/campaigns/kintara-for-st-jude",
  "source": "donate"
}
```

* `name` and `imageUrl` can be `null`. Show your own fallback.
* `url` is the beneficiary's page on donate.gg. Linking to it is welcome. It is `null` when there
  is no page: a charity has one only once it has signed up on Donate.
* `source` is set for a campaign: `donate` for one created on donate.gg, `tiltify` for one
  imported from Tiltify. It is `null` for a charity.
* `available` is `false` for a recipient that is withheld or does not exist. See
  [below](#recipients-that-are-withheld).

To show a beneficiary in full, read it by type:
[`GET /v2/charities/{charityId}`](https://docs.donate.gg/api-reference/charities/get) or
[`GET /v2/campaigns/{campaignId}`](https://docs.donate.gg/api-reference/campaigns/get).

> [!NOTE]
>
> 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](https://docs.donate.gg/api/pagination-and-formats.md#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:

```json theme={null}
{
  "beneficiaries": [
    { "type": "charity", "id": "9b4dae4e-d8c1-4322-a594-35a4858296b2", "weight": 3 },
    { "type": "campaign", "id": "cmr2icrm701xu04jxvybvmgwn", "weight": 1 }
  ]
}
```

and this is the config, wherever you read it:

```json theme={null}
{
  "id": "0x7ac4174ed42dc6285a4d8a29f33177218a9e99becb64a5c9845725d1ebfe29f3",
  "idBase58": "9GEATUZ8sqNxgiuF3BauoNaUKoA7v1MMrV16UZFkqqpW",
  "beneficiaries": [
    { "type": "charity", "id": "9b4dae4e-d8c1-4322-a594-35a4858296b2", "weight": "3" },
    { "type": "campaign", "id": "cmr2icrm701xu04jxvybvmgwn", "weight": "1" }
  ],
  "createdAt": "2026-11-19T09:12:04.118Z"
}
```

* **A config is recipients and weights, and nothing else.** It has no name, no logo and no fee.
* **Weights are relative, not percentages.** Weights `3` and `1` mean three quarters and one
  quarter. To show a percentage, compute `weight / 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 `201` and a repeat answers `200`
  with the same body, so a retry is safe.
* **The id is 32 bytes, written twice.** `id` is lower-case `0x` hex, the `bytes32` an EVM
  donation names. `idBase58` is 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 the `receiverCount` from each search result.

Create one with [`POST /v2/configs`](https://docs.donate.gg/api-reference/configs/create), read any config with
[`GET /v2/configs/{configId}`](https://docs.donate.gg/api-reference/configs/get), and list your own with
[`GET /v2/configs`](https://docs.donate.gg/api-reference/configs/list).

## 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.

| The donation goes through | Rate today |
| - | - |
| A config your project created through the API | 20% |
| Donate's own config, credited to a registered partner address | 20% |
| Donate's own config, as on the donate.gg site | 3% |

[`GET /v2/configs/{configId}/fee`](https://docs.donate.gg/api-reference/configs/get-fee) quotes the fee a donation would
pay now:

```bash theme={null}
curl "https://api.donate.gg/api/v2/configs/BN5zs4C4zce2XBL3QjqV7LTjE51822i2jX4TPQ8DjM3v/fee?chainId=101&creditedAddress=ExampLeWa11et1111111111111111111111111111111"
```

The credited address here is a placeholder nobody holds. An example answer:

```json theme={null}
{ "feeBps": 2000, "evaluatedSlot": "381204455" }
```

* `chainId` is the chain the donor pays on: `101` for Solana, or an EVM chain that bridges to
  Solana. Any other chain answers `400`.
* `creditedAddress` is the address the donation is credited to on-chain: `credited_to` on
  Solana, `creditedTo` on 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.
* `feeBps` is the fee in basis points, as a number: `2000` is 20%. `evaluatedSlot` is 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.

A donation is `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](https://docs.donate.gg/api/pagination-and-formats.md#totals) has every field, and
[Track a donation](https://docs.donate.gg/guides/track-a-donation.md) 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, so [`GET /v2/coins/{chainId}/{address}`](https://docs.donate.gg/api-reference/coins/get) 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 has `config: null` and keeps its totals.
* The coin read finds that link for the coins of one launchpad: the one whose coins
  [`GET /v2/coins`](https://docs.donate.gg/api-reference/coins/list) lists. A coin of any other launchpad reads with
  `config: null` once it has donated, and answers `404` before.
* 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 answers
  `404`.

[A coin that donates its fees](https://docs.donate.gg/guides/coin-launchpad.md) walks through the whole integration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.