Pot

Pot related API endpoints.

For query parameter chain see supported chains here

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

Name
Type
Description

chain*

String

Blockchain hosting the raffle contra

Headers

Name
Type
Description

Authorization*

API Key

{
    "pot_id": 4
    "pot_limit": "1000000000000000000",
    "pot_size": "132207300000000000",
    "tickets_issued": 7
    "tickets_remaining": 13 
}

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

Name
Type
Description

chain*

String

Blockchain hosting the raffle contra

Headers

Name
Type
Description

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

Name
Type
Description

chain*

String

Blockchain hosting the raffle contract

Headers

Name
Type
Description

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

Name
Type
Description

chain*

String

Blockchain hosting the raffle contract

Headers

Name
Type
Description

Authorization*

API Key

Last updated