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

# List chains

> The chains a donation can be made on, with the contract or program a donation calls on each. This changes rarely: keep it for minutes, not per request. Public: no API key is needed. Send one to use your organization's rate limit.



## OpenAPI

````yaml /openapi.json get /v2/chains
openapi: 3.1.1
info:
  title: Donate API
  version: 2.0.0
  description: >-
    Find charities and campaigns, create donation configs, and read what coins
    and donors have given. Every path starts with its version. Build on `/v2`.
    Its responses hold their own resource and references `{ type, id }` to
    others; every list is `{ items, nextCursor }`; amounts are integer strings
    whose name carries the unit (`UsdE6`, `Atomic`); and every error is `{
    "code": string, "message": string }`. `/v1` is the earlier surface: it keeps
    working, knows only charities, and has its own shapes and error body (`{
    "error": string, "code": string }`). Public reads work without a key and are
    rate limited per IP address; send `donate-api-key` to use the rate limit of
    your organization, which all its keys share. Creating and listing configs,
    reading project analytics and requesting a charity require the key.
servers:
  - url: https://api.donate.gg/api
    description: Every operation path starts with its version.
security: []
tags:
  - name: Beneficiaries
    description: >-
      A beneficiary is something a donation can pay: a charity or a campaign.
      Search for one to name in a config, or resolve the references a config or
      a coin holds into what to show.
  - name: Charities
    description: Registered non-profits listed on Donate.
  - name: Campaigns
    description: >-
      Fundraisers created on Donate or imported from a provider, their donation
      messages and their deposit addresses.
  - name: Configs
    description: >-
      A config is a permanent split: the beneficiaries a donation pays and the
      weight each receives. A donation is made against a config id.
  - name: Coins
    description: >-
      A coin is a token whose fees donate through a config: who it pays, what it
      has given, and how it ranks.
  - name: Donations
    description: >-
      The state of a donation that crosses chains. The donations a charity or a
      campaign has received are listed under Charities and Campaigns.
  - name: Charity requests
    description: >-
      Find a charity in an official register and ask Donate to list it when it
      is not listed yet.
  - name: Reference data
    description: Supported chains and campaign categories.
  - name: Users
    description: People with a Donate profile.
paths:
  /v2/chains:
    get:
      tags:
        - Reference data
      summary: List chains
      description: >-
        The chains a donation can be made on, with the contract or program a
        donation calls on each. This changes rarely: keep it for minutes, not
        per request. Public: no API key is needed. Send one to use your
        organization's rate limit.
      operationId: listChains
      parameters:
        - name: donate-api-key
          in: header
          required: false
          schema:
            type: string
          description: >-
            Optional. Your API key. With it the request counts against your
            organization's rate limit; without it, against the limit of your IP
            address.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                          description: >-
                            Chain id. 101 is Solana; EVM chains use their
                            EIP-155 id.
                        name:
                          type: string
                        type:
                          enum:
                            - evm
                            - solana
                          type: string
                        donationRelay:
                          anyOf:
                            - type: object
                              properties:
                                address:
                                  type: string
                                settlementChainId:
                                  type: number
                                  description: >-
                                    Chain id. 101 is Solana; EVM chains use
                                    their EIP-155 id.
                                bridge:
                                  anyOf:
                                    - type: object
                                      properties:
                                        settlementCurrency:
                                          type: string
                                        minimumAmountAtomic:
                                          type: string
                                          description: >-
                                            Smallest donation the bridge carries, in
                                            atomic units of the settlement currency.
                                        slippageBps:
                                          type: number
                                        reclaimAfterSeconds:
                                          type: number
                                        methods:
                                          type: array
                                          items:
                                            type: string
                                          description: Contract methods a donation may call.
                                      required:
                                        - settlementCurrency
                                        - minimumAmountAtomic
                                        - slippageBps
                                        - reclaimAfterSeconds
                                        - methods
                                    - type: 'null'
                              required:
                                - address
                                - settlementChainId
                                - bridge
                            - type: 'null'
                      required:
                        - id
                        - name
                        - type
                        - donationRelay
                  nextCursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - items
                  - nextCursor
              example:
                items:
                  - id: 101
                    name: Solana
                    type: solana
                    donationRelay:
                      address: RLAYHr9TRFcKB2ubYQhspcnXiaGpaVzNQvHytt47RZu
                      settlementChainId: 101
                      bridge: null
                  - id: 8453
                    name: Base
                    type: evm
                    donationRelay:
                      address: '0x02A0d2a39732082b824a5A3D3b026C54d581DCC8'
                      settlementChainId: 101
                      bridge:
                        settlementCurrency: USDC
                        minimumAmountAtomic: '0'
                        slippageBps: 300
                        reclaimAfterSeconds: 86400
                        methods:
                          - donateNative
                          - donateToken
                          - donateTokenWithPermit
                nextCursor: null
        '401':
          description: >-
            `UNAUTHENTICATED`: An API key was sent and is not valid. A request
            without a key is never answered 401 here.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - UNAUTHENTICATED
                  message:
                    type: string
              example:
                code: UNAUTHENTICATED
                message: This API key is not valid.
        '429':
          description: >-
            `RATE_LIMIT_EXCEEDED`: Too many requests. Wait for the time in the
            Retry-After header.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    enum:
                      - RATE_LIMIT_EXCEEDED
                    type: string
                  message:
                    type: string
              example:
                code: RATE_LIMIT_EXCEEDED
                message: >-
                  Too many requests. Wait for the time in the Retry-After
                  header.
      security: []

````

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