Skip to main content
GET
/
stake-count
Get Stake Count
curl --request GET \
  --url https://tokens.shakesco.com/stake-count \
  --header 'Authorization: Bearer <token>'
{ "stake_count": 2 }

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 total number of stake records for this customer, including unstaked positions that haven’t been pruned. Valid stake_index values for /stake-info and related endpoints range from 0 to stake_count - 1.

Query Parameters

customer_ref
string
required
Your unique identifier for this customer

Response

stake_count
integer
Total stakes ever created for this customer
const res = await fetch(
  "https://tokens.shakesco.com/stake-count?customer_ref=customer-123",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { stake_count } = await res.json();
{ "stake_count": 2 }