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

# Track a donation

> Show a donor where their donation is, from the transaction to the payout

A donation is not finished when the donor's transaction confirms. It is converted to USDC, batched
with others and then paid out. This page shows what to read at each point and how often.

> [!WARNING]
>
> A missing, pending or failed lookup is never a reason to send again. Keep the donor's transaction
> hash and keep looking it up. Money that left a wallet is either on its way or can be reclaimed.

## What happens to a donation

**1. The donor's transaction confirms**

A donation made on Solana is recorded as a donation. A donation made on an EVM chain is held in
escrow on that chain and recorded as a transfer in progress.

**2. It is converted and batched**

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. It is paid out**

USDC is distributed on Solana to each beneficiary by weight, with the fee and any tip accounted
for separately. When that transaction is final, the donation is settled.

How long this takes depends on the size of the donation and on how much else is going to the same
config. Tell donors that a delay is normal.

## Which read to use

| You have | Read |
| - | - |
| A charity or a campaign, and you want its feed | [Its donations](#show-recent-donations) |
| A donor's transaction on an EVM chain | [`GET /v2/donation-transfers`](#track-a-transfer-from-an-evm-chain) |
| A transaction sent to a campaign's deposit address | [The deposit read](https://docs.donate.gg/guides/campaigns.md#give-a-campaign-a-deposit-address) |

## Show recent donations

[`GET /v2/charities/{charityId}/donations`](https://docs.donate.gg/api-reference/charities/list-donations) lists the
donations that reached one charity, and
[`GET /v2/campaigns/{campaignId}/donations`](https://docs.donate.gg/api-reference/campaigns/list-donations) the
donations that reached one campaign. Both are newest first and count a donation whichever config
it came through: the beneficiary's own page, a coin, or an integration. Both answer rows of the
same shape.

```bash theme={null}
curl "https://api.donate.gg/api/v2/charities/9b4dae4e-d8c1-4322-a594-35a4858296b2/donations?limit=2"
```

An example answer, with one row of each `type`. The charity and the coin are real. Both rows are
made up: Donate has recorded neither transaction, and the donors' addresses are placeholders
nobody holds.

```json theme={null}
{
  "items": [
    {
      "type": "donation",
      "id": "cmwfjkz5l000b08jsjl4u2ppv",
      "status": "settled",
      "chainId": 101,
      "transactionHash": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW",
      "donatedAt": "2026-11-13T22:22:06.000Z",
      "donor": {
        "chainId": 101,
        "address": "ExampLeWa11et1111111111111111111111111111111",
        "name": "Make A Wish",
        "imageUrl": null,
        "url": null
      },
      "coin": { "chainId": 101, "address": "2ssMotVbTUfRJev2UnibHzHsoeszPzgwbfsTZPSHpump" },
      "amountAtomic": "512340000",
      "token": {
        "chainId": 101,
        "address": "So11111111111111111111111111111111111111112",
        "symbol": "SOL",
        "decimals": 9
      },
      "amountUsdE6": "83460186",
      "message": "For the reef.",
      "transferId": null
    },
    {
      "type": "transfer",
      "id": "0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c",
      "status": "in-transit",
      "chainId": 8453,
      "transactionHash": "0x8d2f6a1c4e7b9053d1a8c6e4f2b0d9a7c5e3f1b8d6a4c2e0f9b7d5a3c1e8f6b4",
      "donatedAt": "2026-11-19T09:10:41.000Z",
      "donor": {
        "chainId": 8453,
        "address": "0x1111111111111111111111111111111111111111",
        "name": null,
        "imageUrl": null,
        "url": null
      },
      "coin": null,
      "amountAtomic": "25000000",
      "token": {
        "chainId": 8453,
        "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "symbol": "USDC",
        "decimals": 6
      },
      "amountUsdE6": null,
      "message": null,
      "transferId": "0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c"
    }
  ],
  "nextCursor": null
}
```

| Parameter | Required | Values |
| - | - | - |
| `limit` | No | 1 to 50. Default 25 |
| `cursor` | No | The `nextCursor` of the previous page of the same feed |

A charity that is hidden, disabled or has opted out, and a hidden campaign, answer 404, the same
as an unknown id. A page is shared for a few seconds, so reading faster than every five seconds
shows nothing new.

| Field | Meaning |
| - | - |
| `type` | `donation` for a donation Donate has recorded. `transfer` for funds on their way from another chain that are not a recorded donation yet |
| `status` | What it means depends on `type`. See the two tables below |
| `chainId`, `transactionHash` | The donor's transaction: an EVM hash or a Solana signature |
| `donor` | The wallet that gave. `name` is `null` for a wallet nobody has named: show the `address` |
| `coin` | Set when a coin's fees made the donation. The donor's `name` is then the coin's name. `null` for a donation a person made |
| `amountAtomic` | On a `donation`, the part of the donation attributed to this beneficiary. On a `transfer`, everything the donor sent, because it has not been divided yet |
| `token` | The currency of `amountAtomic`. `null` for a transfer of a token Donate does not list. Its `symbol` is `null` for a token whose name Donate does not show |
| `amountUsdE6` | `amountAtomic` in US dollars times 10^6. `null` on a `transfer`: a transfer is not priced until it is a donation |
| `message` | The donor's message, when there is one and it is approved. `null` otherwise, and on every `transfer` |
| `transferId` | Set for a donation that crossed chains. Read it with `GET /v2/donation-transfers/{transferId}` |

### Statuses of a donation

| `status` | Meaning |
| - | - |
| `pending` | Received and counted, not yet paid out |
| `settled` | Paid out to the beneficiaries |
| `unconfirmed` | The chain no longer shows the donor's transaction as final. Not counted unless it lands again |

### Statuses of a transfer

| `status` | Meaning |
| - | - |
| `in-transit` | The funds are on their way and are not a recorded donation yet |
| `returned` | The funds went back to the donor |
| `needs-attention` | The transfer has stopped moving. Read its exact state with its `transferId` |

These three are coarse on purpose. They come from what Donate has recorded, not from a fresh read
of the chain, so use them to label a row in a feed and for nothing else.

> [!WARNING]
>
> Never decide to reclaim funds, or to send again, from a row of this feed. The exact state of a
> transfer is read only from the two transfer reads below.

What else to know:

* **A transfer keeps its `id` when it becomes a donation.** The row changes `type` from
  `transfer` to `donation` in place, so a list can update the row instead of adding one.
* **Transfer rows are for the beneficiary's own page.** Funds on their way from another chain to
  the charity's or campaign's own page on donate.gg appear as `transfer` rows. A bridged donation
  through any other config appears once it is a recorded donation.
* **A beneficiary that is unknown or [withheld](https://docs.donate.gg/api/pagination-and-formats.md#a-recipient-that-is-withheld)
  answers `404`** with `NOT_FOUND`.
* **A donation is listed for every beneficiary it paid.** A donation through a config that splits
  three ways is in three feeds, each with its own part in `amountAtomic`.

### Messages

For the messages donors left on a campaign, use
[`GET /v2/campaigns/{campaignId}/messages`](https://docs.donate.gg/guides/campaigns#show-donation-messages).

A charity has the same list at
[`GET /v2/charities/{charityId}/messages`](https://docs.donate.gg/api-reference/charities/list-messages), with the same
item and the same paging. The two differ in what they cover:

| List | Covers |
| - | - |
| `GET /v2/campaigns/{campaignId}/messages` | Donations through any config that names the campaign |
| `GET /v2/charities/{charityId}/messages` | Donations made to the charity on Donate. A donation through another config that names it, such as a coin's, is left out |

A charity that is [withheld](https://docs.donate.gg/api/pagination-and-formats.md#a-recipient-that-is-withheld) answers
`404` on its message list, and so does a hidden campaign.

## Track a transfer from an EVM chain

A donation made on an EVM chain is bridged before it becomes a donation. Two reads report the
exact, current state of the bridge.

[`GET /v2/donation-transfers`](https://docs.donate.gg/api-reference/donations/donation-transfers/list) lists the
transfers of the donor's transaction on the chain they paid on:

```bash theme={null}
curl "https://api.donate.gg/api/v2/donation-transfers?chainId=8453&transactionHash=0x8d2f6a1c4e7b9053d1a8c6e4f2b0d9a7c5e3f1b8d6a4c2e0f9b7d5a3c1e8f6b4"
```

[`GET /v2/donation-transfers/{transferId}`](https://docs.donate.gg/api-reference/donations/donation-transfers/get)
reads one transfer by the `transferId` of a row in the feed:

```bash theme={null}
curl "https://api.donate.gg/api/v2/donation-transfers/0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c"
```

An example answer of the list for a transfer that exists. The read by id answers the same
transfer by itself, without `items`. Both examples are of a made-up transaction, so on production
the list is empty and the read by id answers `404`:

```json theme={null}
{
  "items": [
    {
      "id": "0x3f1b0c7d5a9e4f2b8c6d1e0a7b9c8d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c",
      "status": "bridged",
      "origin": {
        "chainId": 8453,
        "transactionHash": "0x8d2f6a1c4e7b9053d1a8c6e4f2b0d9a7c5e3f1b8d6a4c2e0f9b7d5a3c1e8f6b4",
        "senderAddress": "0x1111111111111111111111111111111111111111",
        "fundingCallerAddress": "0x1111111111111111111111111111111111111111",
        "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountAtomic": "25000000",
        "depositId": "184467"
      },
      "destination": { "chainId": 101, "transactionHash": null },
      "reclaimAt": "2026-11-20T09:10:41.000Z",
      "reason": null
    }
  ],
  "nextCursor": null
}
```

* The list takes `chainId` and `transactionHash` together. Without both it answers `400` with
  `VALIDATION_ERROR`.
* `transferId` and `transactionHash` are EVM hashes: `0x` and 64 hex digits. A Solana donation
  does not cross chains and has no transfer.
* The list has one item for each deposit the transaction made. **An empty `items` means the
  transaction has not been seen yet.** It does not mean the deposit failed. A `404` from the read
  by id means the same for that id.
* `status` is the exact state. `donated` means a donation has been recorded and normal settlement
  continues. Every value, and how a deposit that cannot be delivered is reclaimed with
  `origin.depositId` after `reclaimAt`, is in
  [Bridged EVM donations](https://docs.donate.gg/blockchain/donation-bridge.md#track-a-transfer).
* Both reads are fresh on every request. If the chain or the database cannot be read they answer
  `503` with `PROVIDER_UNAVAILABLE`, never an empty list or a `404`. Show what you last had and
  try again.

## Track a deposit to a campaign address

A donor who sent tokens to a campaign's deposit address has no contract call to look up. Use the
deposit read in [Work with campaigns](https://docs.donate.gg/guides/campaigns.md#give-a-campaign-a-deposit-address).

## Poll, and how often

There are no webhooks. To follow a donation, read again.

| What you are watching | Read | A sensible interval |
| - | - | - |
| A feed on a page someone has open | The charity's or the campaign's donations | Every 15 to 30 seconds |
| One donor's EVM transfer | `GET /v2/donation-transfers` | Every 10 to 15 seconds |
| A campaign's or charity's total | The campaign read or the charity read, in `stats` | Once a minute |

Stop polling when the page is hidden, back off when a call fails, and send your API key from your
server so the reads count against your organization's limit. See [Rate limits](https://docs.donate.gg/api/rate-limits.md).

## Runnable sequence

```bash theme={null}
# Recent donations to a campaign, and to a charity
curl "https://api.donate.gg/api/v2/campaigns/cmr2icrm701xu04jxvybvmgwn/donations?limit=2"
curl "https://api.donate.gg/api/v2/charities/9b4dae4e-d8c1-4322-a594-35a4858296b2/donations?limit=2"

# The total a campaign has raised is in its stats
curl "https://api.donate.gg/api/v2/campaigns/cmr2icrm701xu04jxvybvmgwn"

# A transfer lookup by the donor's EVM transaction. A transaction nobody sent answers an empty list.
curl "https://api.donate.gg/api/v2/donation-transfers?chainId=8453&transactionHash=0x8d2f6a1c4e7b9053d1a8c6e4f2b0d9a7c5e3f1b8d6a4c2e0f9b7d5a3c1e8f6b4"

# The list without its two parameters: 400 VALIDATION_ERROR
curl -i "https://api.donate.gg/api/v2/donation-transfers"
```


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