Users

Raffle users related API endpoints.

For query parameter chain see supported chains here

Get all tickets for user in a pot

Total number of tickets for user in the current pot

GET https://api.rpslabs/v1/user/{address}/pot/current

Returns all tickets that user has in the current pot.

Query Parameters

NameTypeDescription

chain*

String

Blockchain hosting the raffle contract

Headers

NameTypeDescription

Authorization*

API Key


{
    "NumOfTickets": 5,
    "wallet_address": "0xa22fe8d7b230a48de511669fefa957bdc97f2705",
    "pot_id": 4,
    "tickets": [
        {
            "ticket_id": 2224,
            "is_winner": false
        },
        {
            "ticket_id": 2225,
            "is_winner": false,
        },
        {
            "ticket_id": 2226,
            "is_winner": true,
        },
        {
            "ticket_id": 2228,
            "is_winner": false,
        },
        {
            "ticket_id": 2242,
            "is_winner": false,
        }
    ]
}

Total number of tickets for user in a pot

GET https://api.rpslabs/v1/user/{address}/pot/{pot_id}

Returns all tickets that user has in the pot specified by pot_id.

Query Parameters

NameTypeDescription

chain*

String

Blockchain hosting the raffle contract

Headers

NameTypeDescription

Authorization*

API Key

{
    "NumOfTickets": 5,
    "wallet_address": "0xa22fe8d7b230a48de511669fefa957bdc97f2705",
    "pot_id": 4,
    "tickets": [
        {
            "ticket_id": 2224,
            "is_winner": false
        },
        {
            "ticket_id": 2225,
            "is_winner": false
         },
        {
            "ticket_id": 2226,
            "is_winner": true
        },
        {
            "ticket_id": 2227,
            "is_winner": false
        },
        {
            "ticket_id": 2228,
            "is_winner": false
        }
    ]
}

Last updated