Skip to main content
GET
/
total-earned
Total Earned
curl --request GET \
  --url https://tokens.shakesco.com/total-earned \
  --header 'Authorization: Bearer <token>'
{ "total_earned": "200.0" }

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. Returns the lifetime total of tokens this customer has earned across every source: event claims, staking rewards, vested grants, cashback, migrated balances, and transfers received. Never decreases.

Query Parameters

customer_ref
string
required
Your unique identifier for this customer

Response

total_earned
string
Lifetime earnings as a plain decimal string
const res = await fetch(
  "https://tokens.shakesco.com/total-earned?customer_ref=customer-123",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { total_earned } = await res.json();
{ "total_earned": "200.0" }