---
title: "Referral History"
method: GET
path: "/api/referrals/history/{address}"
tags: ["Referrals"]
---

# Referral History

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

## Request

- Base URL: `https://backend-global.gains.trade`
- URL: `https://backend-global.gains.trade/api/referrals/history/{address}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gains/apis/gains-network-backend-api/docs/api/referrals/history/:address/get.ts> (a function with typed inputs; its response is checked against the schema)

Daily accruals ascending, and payments received descending.

## Path parameters

- `address` string, required

## Response `200`

Successful response

- object
  - `result` ReferralHistory
    - `daily` object[]
      - `day` string: YYYY-MM-DD, UTC.
      - `accruedUsd` string: Decimal USD.
    - `claims` object[]
      - `tx` string
      - `block` integer
      - `amountMicroUsdc` string: Micro-USDC paid by this transaction.
      - `cumulativeMicroUsdc` string: Micro-USDC cumulative total at that claim.

## Other responses

- `400`: Invalid address
- `500`: Internal server error

## Changes

- **2026-11-03** `4b415b6ff9d6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gains/apis/gains-network-backend-api/changes/api/referrals/history/:address/get.md)

---

[API](https://skmtc.dev/gains/apis/gains-network-backend-api.md) - [All operations](https://skmtc.dev/gains/apis/gains-network-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gains/apis/gains-network-backend-api/revisions/4b415b6ff9d6?raw)
