Skip to main content
POST
Set Staking Rate
For the complete documentation index, see llms.txt. Sets the base reward rate for your token. Every customer stake is calculated proportionally from this base: a customer locking for half the base duration earns half the base reward, locking for double earns double, and so on. You only need to call this once unless you want to change the rate. Stakes created before a rate change keep their original reward percent.
This must be set before customers can create stakes. /create-stake returns 400 Invalid parameters until you do.

Request Body

string
required
Base lock period in seconds (e.g. "31536000" = 1 year)
number
required
Reward earned over the base period, in percent. 20 = 20%. Decimals allowed (12.5).

Response

string
Reference identifier for the rate change