Votes
get
Responses
200Success
application/json
Responsestring
503
External service temporarily unavailable
get
GET /votes/total HTTP/1.1
Host:
Accept: */*
text
get
Responses
200Success
application/json
503
External service temporarily unavailable
get
GET /votes/validators HTTP/1.1
Host:
Accept: */*
{
"validatorAddress": "text"
}
get
Path parameters
addressstringRequiredExample:
Waves address
3NATtoFY9ke8DXV5nkzaMegnFVLypU5c8vT
Query parameters
pagenumberOptionalDefault:
Page number. Starts from 1.
1
limitnumber · max: 20OptionalDefault:
Number of items per page. Maximum is 20.
10
sortstring[]OptionalExample:
Sort by fields: cycle, timestamp, votes, unlockBlock, flowAmount. Format: sort=field[,direction]. Default direction = 'asc'
["cycle,asc","timestamp,asc"]
Responses
200Success
application/json
get
GET /votes/{address} HTTP/1.1
Host:
Accept: */*
200Success
{
"data": [
{
"txId": "text",
"timestamp": 1,
"height": 1,
"cycle": 1,
"address": "text",
"validatorAddress": "text",
"votes": "text",
"flowAmount": "text",
"unlockBlock": 1,
"redeem": {
"txId": "text",
"timestamp": 1,
"height": 1,
"cycle": 1
}
}
],
"total": 100,
"page": 1,
"limit": 10
}
get
Path parameters
addressstringRequiredExample:
Waves address
3NATtoFY9ke8DXV5nkzaMegnFVLypU5c8vT
Responses
200Success
application/json
503
External service temporarily unavailable
get
GET /votes/stats/{address} HTTP/1.1
Host:
Accept: */*
{
"totalVoted": "text",
"lockedFlow": "text",
"claimable": "text",
"unlockingFlow": "text",
"unlockingBlock": 1
}
get
Path parameters
validatorAddressstringRequiredExample:
Validator Waves address
3NATtoFY9ke8DXV5nkzaMegnFVLypU5c8vT
Query parameters
pagenumberOptionalDefault:
Page number. Starts from 1.
1
limitnumber · max: 20OptionalDefault:
Number of items per page. Maximum is 20.
10
sortstring[]OptionalExample:
Sort by fields: cycle, timestamp, votes, unlockBlock, flowAmount. Format: sort=field[,direction]. Default direction = 'asc'
["cycle,asc","timestamp,asc"]
Responses
200Success
application/json
get
GET /votes/validator/{validatorAddress} HTTP/1.1
Host:
Accept: */*
200Success
{
"data": [
{
"txId": "text",
"timestamp": 1,
"height": 1,
"cycle": 1,
"address": "text",
"validatorAddress": "text",
"votes": "text",
"flowAmount": "text",
"unlockBlock": 1,
"redeem": {
"txId": "text",
"timestamp": 1,
"height": 1,
"cycle": 1
}
}
],
"total": 100,
"page": 1,
"limit": 10
}