Votes

get
Responses
200Success
application/json
Responsestring
get
GET /votes/total HTTP/1.1
Host: 
Accept: */*
text
get
Responses
200Success
application/json
get
GET /votes/validators HTTP/1.1
Host: 
Accept: */*
{
  "validatorAddress": "text"
}
get
Path parameters
addressstringRequired

Waves address

Example: 3NATtoFY9ke8DXV5nkzaMegnFVLypU5c8vT
Query parameters
pagenumberOptional

Page number. Starts from 1.

Default: 1
limitnumber · max: 20Optional

Number of items per page. Maximum is 20.

Default: 10
sortstring[]Optional

Sort by fields: cycle, timestamp, votes, unlockBlock, flowAmount. Format: sort=field[,direction]. Default direction = 'asc'

Example: ["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
addressstringRequired

Waves address

Example: 3NATtoFY9ke8DXV5nkzaMegnFVLypU5c8vT
Responses
200Success
application/json
get
GET /votes/stats/{address} HTTP/1.1
Host: 
Accept: */*
{
  "totalVoted": "text",
  "lockedFlow": "text",
  "claimable": "text",
  "unlockingFlow": "text",
  "unlockingBlock": 1
}
get
Path parameters
validatorAddressstringRequired

Validator Waves address

Example: 3NATtoFY9ke8DXV5nkzaMegnFVLypU5c8vT
Query parameters
pagenumberOptional

Page number. Starts from 1.

Default: 1
limitnumber · max: 20Optional

Number of items per page. Maximum is 20.

Default: 10
sortstring[]Optional

Sort by fields: cycle, timestamp, votes, unlockBlock, flowAmount. Format: sort=field[,direction]. Default direction = 'asc'

Example: ["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
}