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

# Show what a coin donates to

> Read who a coin pays, show each recipient as a row, and open a details view for one

If you have the coin's config id, one public call returns everything you need to show who it pays:
[`GET /v2/configs/{configId}/beneficiaries`](https://docs.donate.gg/api-reference/configs/list-beneficiaries). Each item
has its weight and public profile. A charity includes its website and socials. A campaign
includes its own profile and the beneficiaries it supports. If you only have the coin's address,
read the coin first to find its current config id. Call these endpoints from your server.

The examples use a real coin on Solana: mint `2ssMotVbTUfRJev2UnibHzHsoeszPzgwbfsTZPSHpump`, chain
id `101`.

## 1. Read the coin

[`GET /v2/coins/{chainId}/{address}`](https://docs.donate.gg/api-reference/coins/get) returns the coin, the config its
fees pay now, the configs it paid before, and what it has donated.

```bash theme={null}
curl "https://api.donate.gg/api/v2/coins/101/2ssMotVbTUfRJev2UnibHzHsoeszPzgwbfsTZPSHpump"
```

An example answer:

```json theme={null}
{
  "chainId": 101,
  "address": "2ssMotVbTUfRJev2UnibHzHsoeszPzgwbfsTZPSHpump",
  "name": "Make A Wish",
  "symbol": "Wish",
  "decimals": 6,
  "imageUrl": null,
  "creatorAddress": "Ce74gzQGh9u1cg18oGbriCHmFtryfK8imT1GmmpWSqjs",
  "hidden": false,
  "config": {
    "id": "0x99fbb793f984a8c5f06693e13af3a2629479beac1c38169ec8b601faad71bce9",
    "idBase58": "BN5zs4C4zce2XBL3QjqV7LTjE51822i2jX4TPQ8DjM3v",
    "beneficiaries": [
      { "type": "charity", "id": "9b4dae4e-d8c1-4322-a594-35a4858296b2", "weight": "100" }
    ],
    "createdAt": "2026-04-29T17:41:06.212Z"
  },
  "previousConfigIds": [],
  "rank": 2,
  "stats": {
    "totalUsdE6": "181242751330",
    "pendingUsdE6": "0",
    "settledUsdE6": "181242751330",
    "donationCount": 423,
    "pendingCount": 0,
    "settledCount": 423,
    "firstDonationAt": "2026-04-29T18:02:19.000Z",
    "lastDonationAt": "2026-10-28T04:16:10.000Z"
  }
}
```

| Field | Use it for |
| - | - |
| `config.beneficiaries` | The recipients the coin pays now. Each is a reference with a `weight`, and none is ever left out |
| `config` | `null` when the coin pays no config now. See [below](#a-coin-that-no-longer-pays-a-config) |
| `previousConfigIds` | The other configs the coin has donated through. Read one with [`GET /v2/configs/{configId}`](https://docs.donate.gg/api-reference/configs/get) |
| `stats` | Everything the coin has donated, through every config. Show `totalUsdE6` |
| `rank` | The coin's place among visible coins by what they have donated. `null` for a hidden coin |
| `name`, `symbol`, `imageUrl` | The coin itself. Each can be `null`: show your own |
| `creatorAddress` | The wallet credited for the coin |
| `hidden` | Whether Donate keeps the coin out of its public lists. A hidden coin can still be read here |

To show each recipient's share, divide its `weight` by the sum of the weights in the config.
Weights are relative, so a single recipient with weight `100` receives everything. A weight is a
whole number in a string.

Which config the coin pays is read from the chain and remembered for up to 20 minutes. If the
chain cannot be read, the call answers `503` with `PROVIDER_UNAVAILABLE`: keep showing what you
last had and try again later.

The read finds that config for the coins of one launchpad only, the one whose coins
[`GET /v2/coins`](https://docs.donate.gg/api-reference/coins/list) lists: see
[Coins and donation sources](https://docs.donate.gg/concepts.md#coins-and-donation-sources). For a coin of another
launchpad, use the config id you attached to it and go straight to step 2.

### A coin that has not donated yet

A coin that has a config and has not donated yet is still read: its `stats` are zero, its `rank`
is `null` and `previousConfigIds` is empty.

The coin read answers `404` for an address that pays no config and has donated nothing, and for
a coin on a chain other than Solana (`101`). It can also answer `404` for up to 20 minutes after a
config is attached to a coin, because the chain read is remembered for that long, "this token is
not a donating coin" included. You hold the config you created, so in that window show its
recipients from the config and skip step 1.

### A coin that no longer pays a config

A creator can point a coin's fees somewhere else after it has donated. The coin is still read,
and it stays in [`GET /v2/coins`](https://docs.donate.gg/api-reference/coins/list) with everything it gave. On the
coin read, `config` is `null`, `stats` and `rank` are unchanged, and `previousConfigIds` holds
every config the coin donated through.

Check `config` for `null` before you read its recipients: the coin has none to show now. Which
config a coin pays is read from the chain and remembered for up to 20 minutes, so a coin that
was just pointed at a config can read `null` for that long, and one that was just pointed
elsewhere can show the config it paid before. To show who it gave to before, read
the configs in `previousConfigIds` with [`GET /v2/configs/{configId}`](https://docs.donate.gg/api-reference/configs/get).

## 2. Show the recipients

Pass the config's hex or base58 id. The response has an `items` array, with one item for each
selection. This example prints the fields a coin page might show.

```bash theme={null}
curl -s "https://api.donate.gg/api/v2/configs/BN5zs4C4zce2XBL3QjqV7LTjE51822i2jX4TPQ8DjM3v/beneficiaries" |
  jq '.items[] | {type, name, weight, imageUrl, url, websiteUrl, socials, beneficiaries}'
```

For a charity, show its name and image and link the website or social accounts that are present.
For a campaign, show the campaign's name and image. Its `beneficiaries` array contains the
people or charities supported by this config's selection, with weights relative to each other.
For example, a coin that sends 30% to a campaign whose two charities have equal weights sends
15% to each. An imported Tiltify campaign stays the named recipient when it completes.

If you have a list of arbitrary references and only need names and images, use
[beneficiary lookup](https://docs.donate.gg/api-reference/beneficiaries/list-by-ids.md). It also accepts `user:<id>`.

### Recipients that need care

| What you get | What it is | What to do |
| - | - | - |
| `available: false` with a `name` and an `imageUrl` | A recipient that is [withheld](https://docs.donate.gg/api/pagination-and-formats.md#a-recipient-that-is-withheld): hidden, disabled or opted out since the config was created | Show the name and image as they are. Do not link it and do not open a details view |
| `available: false` with `null` everywhere | The id names nothing | Show your own fallback |
| `type: "user"` | A person a config created on donate.gg pays directly | Show the row. There is no details read for a person; link `url` when it is set |
| A `type` you do not know | A kind of recipient added after you built the page. Research is the next one | Show the row from `name`, `imageUrl` and `url` with a neutral badge. Add its details view later |

The coin keeps paying a withheld recipient: a config is permanent. The API does not say why a
recipient is withheld.

## 3. The details view

For a row with `available: true`, the fields below are already in the config beneficiaries response.
The individual charity and campaign reads also return these profiles if you only have a recipient id.

> [tab] type: charity
>
> ```bash theme={null}
> curl "https://api.donate.gg/api/v2/charities/9b4dae4e-d8c1-4322-a594-35a4858296b2"
> ```
>
> An example answer from [`GET /v2/charities/{charityId}`](https://docs.donate.gg/api-reference/charities/get):
>
> ```json theme={null}
> {
>   "type": "charity",
>   "id": "9b4dae4e-d8c1-4322-a594-35a4858296b2",
>   "available": true,
>   "name": "Make-A-Wish America",
>   "imageUrl": "https://docs.candid.org/edoc/11142134",
>   "url": "https://www.donate.gg/charities/make-a-wish-america",
>   "source": null,
>   "description": "Together, we create life-changing wishes for children with critical illnesses.",
>   "websiteUrl": "https://wish.org",
>   "registrationNumber": "86-0481941",
>   "country": "US",
>   "location": {
>     "street": "1702 E Highland Ave",
>     "city": "Phoenix",
>     "state": "AZ",
>     "zipCode": "85016"
>   },
>   "socials": {
>     "x": { "url": "https://x.com/makeawish", "handle": "makeawish" },
>     "facebook": { "url": "https://www.facebook.com/makeawish", "handle": "makeawish" },
>     "instagram": {
>       "url": "https://www.instagram.com/makeawishamerica",
>       "handle": "makeawishamerica"
>     },
>     "linkedin": {
>       "url": "https://www.linkedin.com/company/make-a-wish-foundation",
>       "handle": "make-a-wish-foundation"
>     },
>     "youtube": {
>       "url": "https://www.youtube.com/user/MakeAWishFoundation",
>       "handle": "MakeAWishFoundation"
>     },
>     "blog": null
>   },
>   "eligible": true,
>   "stats": {
>     "totalUsdE6": "228998452896",
>     "pendingUsdE6": "84066",
>     "settledUsdE6": "228998368830",
>     "donationCount": 845,
>     "pendingCount": 1,
>     "settledCount": 844,
>     "firstDonationAt": "2026-04-19T00:52:27.000Z",
>     "lastDonationAt": "2026-11-18T22:53:59.000Z"
>   }
> }
> ```
>
> | Part of the view | Field |
> | - | - |
> | Name and logo | `name`, `imageUrl` |
> | Mission | `description`, plain text. It can be empty |
> | Website | `websiteUrl` |
> | X account | `socials.x.handle` shown as `@makeawish`, linking to `socials.x.url` |
> | LinkedIn, Facebook, Instagram | `socials.linkedin.url`, `socials.facebook.url`, `socials.instagram.url`, as links |
> | Address | `location.street`, `location.city`, `location.state`, `location.zipCode`, then `country` |
> | Tax ID | `registrationNumber`: the charity's number in the register of `country`, such as a United States EIN |
> | Its page on donate.gg | `url` |
> | What it has received | `stats.totalUsdE6`: every donation through Donate, from every coin and donor, not only from this coin |
>
> * `socials` always has the six keys `x`, `facebook`, `instagram`, `linkedin`, `youtube` and
>   `blog`. A platform the charity has no account on is `null`: leave it out of the view.
> * Each account is `{ "url", "handle" }`. `handle` is the account name without "@". It is
>   `null` when it is not known, and always for `blog`: show the link alone.
> * Every part of `location`, and `websiteUrl`, `registrationNumber` and `country`, can be
>   `null`. `country` is an ISO 3166-1 alpha-2 code.

> [tab] type: campaign
>
> ```bash theme={null}
> curl "https://api.donate.gg/api/v2/campaigns/cmr2icrm701xu04jxvybvmgwn"
> ```
>
> An example answer from [`GET /v2/campaigns/{campaignId}`](https://docs.donate.gg/api-reference/campaigns/get):
>
> ```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",
>   "sourceUrl": null,
>   "goalUsdE6": "10000000000",
>   "status": "active",
>   "eligible": true,
>   "categoryId": "community",
>   "media": [
>     {
>       "type": "image",
>       "url": "https://donategg-user-assets-prod.s3.us-east-1.amazonaws.com/image/e6a658a4-ee8a-4428-960d-56e16bfe9c91/1874bf55-7026-40be-a1ff-5fbedb6a0fd1.png"
>     }
>   ],
>   "stats": {
>     "totalUsdE6": "13999894404",
>     "pendingUsdE6": "328679",
>     "settledUsdE6": "13999565725",
>     "donationCount": 558,
>     "pendingCount": 2,
>     "settledCount": 556,
>     "firstDonationAt": "2026-06-30T21:01:47.000Z",
>     "lastDonationAt": "2026-07-27T16:04:31.000Z"
>   },
>   "createdAt": "2026-07-01T20:08:14.287Z",
>   "description": "Step up to the Kintara Wishing Well and make a wish that makes a difference! Players can donate through the in-game wishing well, with all donations from this campaign going to St. Jude."
> }
> ```
>
> | Part of the view | Field |
> | - | - |
> | Name and image | `name`, `imageUrl`, and more images and videos in `media` |
> | Story | `description`, plain text |
> | The campaign's own page | `url`, its page on donate.gg. This is the way out to the full campaign |
> | Its page at a provider | `sourceUrl`, set for an imported campaign |
> | Progress | `stats.totalUsdE6` over `goalUsdE6`. Both are US dollars times 10^6. `goalUsdE6` can be `null` |
>
> A campaign that has ended stays readable, with `status: "completed"`. A campaign that has been
> hidden answers `200` with `available: false` and the stand-in its row in step 2 already
> showed, so there is nothing more to read. Only an id that names no campaign is a `404`.
> [Work with campaigns](https://docs.donate.gg/guides/campaigns.md) has the rest: messages, deposit addresses and lists.

A recipient's public profile can be shared between coin pages using its `type` and `id`. Cache
the expanded beneficiaries response by **config id**. Each config has its own weights, and two
configs can pin different receivers for the same campaign.

## What to cache

You call from your backend and can keep answers for hours. What changes, and how often:

| What | How long it holds |
| - | - |
| A config (`id`, `beneficiaries`) | For ever. A config never changes. `GET /v2/configs/{configId}` says so with `Cache-Control: private, max-age=86400` |
| Which config a coin pays | Until the coin is pointed at another config on-chain, which is rare. The API remembers the chain read for up to 20 minutes, so a change can take that long to show |
| Expanded config beneficiaries | Cache by config id. Refresh public profiles periodically because names, links and visibility can change. |
| A recipient's summary or full read | Names, logos and links change rarely, so hours are fine. `available` can turn `false`, so do not keep them for ever |
| `stats` | It moves when donations are recorded. Reading it more than once a minute gains nothing |

## Without an API key

Every call on this page works without a key, and a config can be read by anyone who holds its id.
What a call without a key gets:

* **20 requests a minute per IP address**, counted across everything your server sends. A config
  id costs one call to render. Starting from a coin address takes a second call to find the config.
* **Server-side only.** The API refuses a browser on your domain, with or without a key.
* **Keep what you read.** A config never changes: read it once and keep it for ever. Keep each
  recipient's summary for hours. [What to cache](#what-to-cache) has the rest.
* **With a key the limit is your organization's.** It starts at 50 requests a minute. Access to
  the Developer portal is by invitation: email [support@donate.gg](mailto:support@donate.gg). See
  [API keys](https://docs.donate.gg/api-keys.md) and [Rate limits](https://docs.donate.gg/api/rate-limits.md).

## What the coin has donated

Show your own total if you have one. Donate's is `stats` on the coin read in step 1.
[`GET /v2/coins/{chainId}/{address}/stats`](https://docs.donate.gg/api-reference/coins/get-stats) breaks it down by each
config the coin has paid. [Leaderboards and stats](https://docs.donate.gg/guides/leaderboards-and-stats.md#one-coin) has
that response.

## Coming from v1

On v1 this page needed `GET /v1/{chainId}/tokens/{address}` for the coin and
`GET /v1/charities/{charityId}` for each charity, and a coin that pays a campaign could not be
read at all. Use the config beneficiaries read to show every recipient together, including campaigns.
[Versions](https://docs.donate.gg/api/versions.md#from-v1-to-v2) lists what to change.

## Runnable sequence

```bash theme={null}
# Needs curl and jq.
MINT="2ssMotVbTUfRJev2UnibHzHsoeszPzgwbfsTZPSHpump"

# 1. The coin and the config it pays. `config` is null for a coin that pays none now.
COIN=$(curl -s "https://api.donate.gg/api/v2/coins/101/$MINT")
echo "$COIN" | jq '.config.beneficiaries'

# 2. Read every recipient and its display details. Skip this if the coin has no current config.
CONFIG_ID=$(echo "$COIN" | jq -r '.config.id // empty')
[ -n "$CONFIG_ID" ] && curl "https://api.donate.gg/api/v2/configs/$CONFIG_ID/beneficiaries"
```


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