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

# Claim Proof

> Merkle proof against the batch currently active on the distributor.

### Endpoint

`GET /api/referrals/proof/{address}`

Merkle proof against the batch currently active on the distributor.

### Parameters

| Parameter | Location | Required | Type   | Description  |
| --------- | -------- | -------- | ------ | ------------ |
| `address` | path     | Yes      | string | EVM address. |

A `404` means nothing is claimable yet. That is a normal state, not an error. Pass `cumulativeMicroUsdc` to `claim` unchanged; the contract computes the delta against what you have already claimed. Re-fetch immediately before sending, because a proof goes stale when a new batch is published.

### Usage Example

```bash theme={null}
curl -X GET "https://backend-global.gains.trade/api/referrals/proof/0x1111111111111111111111111111111111111111"
```

### Response Structure

The generated API panel lists the response schema for status codes: 200, 400, 404, 500. Error responses return an `error` field.


## OpenAPI

````yaml get /api/referrals/proof/{address}
openapi: 3.0.3
info:
  title: Gains Network Backend API
  version: 1.0.0
  description: >-
    OpenAPI reference for Gains Network backend-global and public chain-specific
    trading backend endpoints.
servers:
  - url: https://backend-global.gains.trade
    description: Backend Global API
  - url: https://backend-arbitrum.gains.trade
    description: Arbitrum trading backend
  - url: https://backend-base.gains.trade
    description: Base trading backend
  - url: https://backend-polygon.gains.trade
    description: Polygon trading backend
  - url: https://backend-sepolia.gains.trade
    description: Arbitrum Sepolia trading backend
  - url: http://localhost:3002
    description: Local backend-global development server
security: []
tags:
  - name: Health
  - name: Stats
  - name: APR
  - name: Trading History
  - name: Personal Trading History
  - name: Leaderboard
  - name: Holding Rates
  - name: Contests
  - name: Dapp
  - name: Wallet
  - name: Circle
  - name: Solana
  - name: Transak
  - name: Bridge
  - name: Campaigns
  - name: VIP
  - name: Notifications
  - name: Referrals
  - name: Trading Backend
  - name: Legacy Contests
  - name: Rewards
paths:
  /api/referrals/proof/{address}:
    get:
      tags:
        - Referrals
      summary: Claim Proof
      description: >-
        Merkle proof against the batch currently active on the distributor. A
        404 means nothing is claimable yet, which is a normal state rather than
        an error. Pass `cumulativeMicroUsdc` to `claim` unchanged; the contract
        computes the delta.
      operationId: get_referral-proof
      parameters:
        - name: address
          in: path
          required: true
          schema:
            type: string
          description: EVM address.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    $ref: '#/components/schemas/ReferralProof'
        '400':
          description: Invalid address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Nothing claimable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ReferralProof:
      type: object
      properties:
        day:
          type: string
          description: UTC day label of the active batch.
        cumulativeMicroUsdc:
          type: string
          description: >-
            Lifetime cumulative entitlement in the active batch. Pass to claim
            unchanged.
        proof:
          type: array
          items:
            type: string
          description: Merkle proof, bytes32 hex.
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        success:
          type: boolean
      additionalProperties: true

````