Get current referral program
GEThttps://api.n00.testnet.vega.rocks/api/v2/referral-programs/current
Get the current referral program for the network. This program may not be active if it has ended and has not been replaced by another.
Request
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
currentReferralProgram object
{
"currentReferralProgram": {
"benefitTiers": [
{
"minimumEpochs": "string",
"minimumRunningNotionalTakerVolume": "string",
"referralDiscountFactor": "string",
"referralRewardFactor": "string"
}
],
"endOfProgramTimestamp": "string",
"endedAt": "string",
"id": "string",
"stakingTiers": [
{
"minimumStakedTokens": "string",
"referralRewardMultiplier": "string"
}
],
"version": "string",
"windowLength": "string"
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/referral-programs/current' \
-H 'Accept: application/json'
ResponseClear