Investors, warrants & staking
Get Active Staking Configuration
Returns the org's current staking configuration, or isValid=false when none is active.
GEThttps://api.toku.com/tga/get-active-staking-configuration
Not available to API keys yet. It will need grants:read.
curl --request GET \
--url 'https://api.toku.com/tga/get-active-staking-configuration' \
--header 'Authorization: Bearer <token>'200 response
{
"isValid": true,
"activeStakingConfig": {
"stakingConfigurationID": "string",
"orgID": "string",
"maxStakePercentage": "string",
"bufferPeriod": 0,
"cooldownPeriod": 0,
"versionNumber": 0,
"createdAt": "string",
"updatedAt": "string",
"isCurrent": true,
"stakingTypesEnabled": [
"UNVESTED_LOCKED_TOKENS"
]
},
"message": "string"
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.
Query parameters
orgIDstring<uuid>Response
200Successful response
isValidbooleanrequiredactiveStakingConfigobject | nullShow child attributes
stakingConfigurationIDstringrequiredorgIDstringrequiredmaxStakePercentagestringrequiredAllowed: matches ^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$
bufferPeriodintegerrequiredcooldownPeriodintegerrequiredversionNumberintegerrequiredcreatedAtstringrequiredupdatedAtstringrequiredisCurrentbooleanrequiredstakingTypesEnabledstring[]requiredmessagestringrequired400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits