Skip to main content
POST
/
set-happy-hour
Set Happy Hour
curl --request POST \
  --url https://tokens.shakesco.com/set-happy-hour \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "duration": "<string>",
  "multiplier": 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. Starts a happy hour that lasts for the given duration. While active, every /claim-tokens call multiplies the event’s allocation by the multiplier you set. Calling this again overrides any active happy hour.
Treat this as a transaction. After a timeout, check /happy-hour before retrying.

Request Body

duration
string
required
How long the happy hour lasts, in seconds (e.g. "3600" = 1 hour)
multiplier
number
required
How much to multiply earnings by. 2 = 2x, 1.5 = 1.5x. Minimum 1 (no boost).

Response

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