- Docs
- Api%2Freference%2Findexer%2FGetNetworkStakingInfo
Get staking contract state
A snapshot of staking on the Dual network: how much DUAL is staked right now, how fast rewards are being paid out and when the current reward period ends, how much has been paid and claimed since the beginning, and whether staking is currently paused. These figures come straight from the staking contract, so they are always up to the minute. That also makes this one of the slower calls here — cache the answer rather than polling it hard. Amounts are given in wei, the smallest unit of DUAL. Open to everyone. No sign-in needed.
Response Body
application/json
application/json
application/json
curl -X GET "https://api.dual.network/public/network/staking"{
"contract_address": "0x1111111111111111111111111111111111111111",
"total_staked": "412000000000000000000000",
"total_supply": "412000000000000000000000",
"lifetime_rewards_received": "9100000000000000000000",
"lifetime_rewards_claimed": "7400000000000000000000",
"committed_rewards": "1700000000000000000000",
"pending_rewards": "35000000000000000000",
"reward_per_token": "22091837465500000000",
"reward_rate": "1157407407407407",
"rewards_duration": 604800,
"period_finish": 1774224000,
"is_paused": false
}{
"code": 3,
"message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}{
"code": 13,
"message": "internal error"
}