Skip to main content
POST
/
set-daily-cap
Set Daily Cap
curl --request POST \
  --url https://tokens.shakesco.com/set-daily-cap \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cap_amount": 123
}
'
{ "tx_hash": "0xabc..." }

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. Sets the maximum tokens any one customer can earn in a 24-hour window. Once a customer hits the cap, /claim-tokens returns 429 Daily earning cap exceeded until their rolling window resets. The cap is per-customer and resets on a rolling 24-hour window measured from the customer’s first claim of the cycle, not at fixed midnight UTC.

Request Body

cap_amount
number
required
Maximum tokens per customer per day. Decimals allowed.

Response

tx_hash
string
Reference identifier for the cap configuration
await fetch("https://tokens.shakesco.com/set-daily-cap", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ cap_amount: 50 }),
});
{ "tx_hash": "0xabc..." }