Skip to main content
GET
/
staking-rate
Get Staking Rate
curl --request GET \
  --url https://tokens.shakesco.com/staking-rate \
  --header 'Authorization: Bearer <token>'
{
  "base_duration": "31536000",
  "base_reward_percent": 20,
  "is_set": true
}

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 base lock period and base reward percent you’ve configured via /set-staking-rate. is_set is false if you’ve never configured a rate.

Response

base_duration
string
Base lock period in seconds
base_reward_percent
number
Reward percent for the base period (e.g. 20 = 20%)
is_set
boolean
false until you’ve called /set-staking-rate at least once
const res = await fetch("https://tokens.shakesco.com/staking-rate", {
  headers: { Authorization: `Bearer ${API_KEY}` },
});
const { base_duration, base_reward_percent, is_set } = await res.json();
{
  "base_duration": "31536000",
  "base_reward_percent": 20,
  "is_set": true
}