Skip to main content
POST
/
set-tiers
Set Tiers
curl --request POST \
  --url https://tokens.shakesco.com/set-tiers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bronze": 123,
  "silver": 123,
  "gold": 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 available-balance thresholds for the Bronze, Silver, and Gold tiers. A customer’s tier is determined by their available balance only (staked and unvested tokens don’t count). Tier order from highest to lowest is Gold > Silver > Bronze. Customers below the Bronze threshold get tier "None".

Request Body

bronze
number
required
Balance required for Bronze. Decimals allowed.
silver
number
required
Balance required for Silver
gold
number
required
Balance required for Gold

Response

tx_hash
string
Reference identifier for the configuration
await fetch("https://tokens.shakesco.com/set-tiers", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ bronze: 100, silver: 500, gold: 2000 }),
});
{ "tx_hash": "0xabc..." }