Skip to main content
GET
/
calculate-staking-reward
Calculate Staking Reward
curl --request GET \
  --url https://tokens.shakesco.com/calculate-staking-reward \
  --header 'Authorization: Bearer <token>'
{ "reward_percent": 5 }

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 reward percent that would apply if a customer locked tokens for the given duration. Calculated proportionally from your base staking rate. Use this to show customers a preview before they confirm a stake.

Query Parameters

duration
string
required
Lock duration in seconds (e.g. "2592000" = 30 days)

Response

reward_percent
number
Reward percent for that duration (e.g. 5 = 5%)
const res = await fetch(
  "https://tokens.shakesco.com/calculate-staking-reward?duration=2592000",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { reward_percent } = await res.json();
{ "reward_percent": 5 }