Skip to content

Start restoring the current streak gap

POST
/contributions/whuf-streak-restore/start
curl --request POST \
--url https://api.ethos.network/api/v2/contributions/whuf-streak-restore/start \
--header 'X-Ethos-Api-Key: <X-Ethos-Api-Key>'

Fixes the current missed days and their WHUF price in a restore that stays open for 7 days. Burn the restore’s dueWei from a wallet on your profile to add WHUF credit, then call the finish endpoint with the restore id.

Successful response

Media typeapplication/json
object
costWei
required
integer format: int64
dueWei
required
integer format: int64
expiresAt
required
string
id
required
integer
> 0 <= 9007199254740991
missedDays
required
Array<string>

Example generated

{
"costWei": 1,
"dueWei": 1,
"expiresAt": "example",
"id": 1,
"missedDays": [
"example"
]
}

Authorization not provided

Media typeapplication/json
Authorization not provided error (401)

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": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}

Insufficient access

Media typeapplication/json
Insufficient access error (403)

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": "FORBIDDEN",
"message": "Insufficient access",
"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": []
}