Skip to content

Get the current WHUF reward rate and pool state

GET
/whuffies/reward-pool
curl --request GET \
--url https://api.ethos.network/api/v2/whuffies/reward-pool

The contract’s current reward rate in basis points (rewardRateBps) with the pool-wide accounting behind it, read at one block and cached for 60 seconds.

Successful response

Media typeapplication/json
object
accountedRewardBalance
required
integer format: int64
blockNumber
required
integer format: int64
emissionRateBps
required
integer
<= 9007199254740991
rewardRateBps
required
integer
<= 9007199254740991
timestamp
required
integer
<= 9007199254740991
totalAccruedNotPaid
required
integer format: int64
totalCommitted
required
integer format: int64

Example generated

{
"accountedRewardBalance": 1,
"blockNumber": 1,
"emissionRateBps": 1,
"rewardRateBps": 1,
"timestamp": 1,
"totalAccruedNotPaid": 1,
"totalCommitted": 1
}

Invalid input data

Media typeapplication/json
Invalid input data error (400)

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}

Not found

Media typeapplication/json
Not found error (404)

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}

Internal server error

Media typeapplication/json
Internal server error error (500)

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}