Pot
Pot related API endpoints.
Get current pot info
Info about the current pot
GET https://api.rpslabs/v1/pot/info
Returns current pot ID, size, limit and ticket number
Query Parameters
chain*
String
Blockchain hosting the raffle contra
Headers
Authorization*
API Key
{
"pot_id": 4
"pot_limit": "1000000000000000000",
"pot_size": "132207300000000000",
"tickets_issued": 7
"tickets_remaining": 13
}{
"message": "INTERNAL_SERVER_ERROR",
"code": 500
}{
"message": "INCORRECT_CHAIN",
"code": 400
}Get previous winners
All previous winners in the raffle
GET https://api.rpslabs/v1/pot/winners
Returns all users that won the raffle in the past and info related to their pots
Query Parameters
chain*
String
Blockchain hosting the raffle contra
Headers
Authorization*
API Key
Get pot leaderboard
All contestants of a pot
GET https://api.rpslabs/v1/pot/{pot_id}/leaderboard
Returns all wallet addresses in a certain pot sorted by their number of tickets
Query Parameters
chain*
String
Blockchain hosting the raffle contract
Headers
Authorization*
API Key
Get last day pot leaderboard
Contestants of the current pot that earned tickets in the last 24 hours
GET https://api.rpslabs/v1/pot/current/leaderboard/last
Returns all wallet addresses that received tickets for the current pot in the last 24 hours, sorted by that number of tickets
Query Parameters
chain*
String
Blockchain hosting the raffle contract
Headers
Authorization*
API Key
Last updated