RPS Labs
  • 👋Welcome to RPS Labs
  • 📋Table of Contents
  • Overview
    • 💡What we do
  • ✌️Using Lotto SDK
    • For Users
      • Case Studies
    • For Developers
      • 💸Pricing
      • 🧰SDK Docs
        • Getting Started
        • UI Components
        • Hooks
      • 💻API Docs
        • Raffle info
        • Users
        • Pot
      • 📃Smart Contracts
        • RPS Raffle
        • RPS Router
        • Configurable Raffle Parameters
        • Fund Management
        • Deployment Guide
        • Security Considerations
      • ⛓️Supported Chains
  • RESOURCES
    • 🙋‍♂️Contact & Social Links
    • ❓FAQ
    • 🖌️Brand Assets
  • COMING SOON
    • DailyGM!
    • Hypercluster
Powered by GitBook
On this page
  • Get ticket price
  • Current ticket price
  • Potential ticket amount
  • Potential ticket amount
  1. Using Lotto SDK
  2. For Developers
  3. API Docs

Raffle info

Raffle specific endpoints.

Last updated 1 year ago

For query parameter chain see supported chains

Get ticket price

Current ticket price

GET https://api.rpslabs/v1/ticket_price

Returns current price of one ticket in wei

Query Parameters

Name
Type
Description

chain*

String

Blockchain hosting the raffle contract

Headers

Name
Type
Description

Authorization*

API Key

{
    "ticket_price": "50000000000000000"
}
{
    "message": "INTERNAL_SERVER_ERROR",
    "code": 500
}
{
    "message": "INCORRECT_CHAIN",
    "code": 400
}

Potential ticket amount

Potential ticket amount

GET https://api.rpslabs/v1/potential_ticket

Returns an amount of tickets that fee and multiplier of a certain action would give to a user.

Query Parameters

Name
Type
Description

chain*

String

Blockchain hosting the raffle contract

fee*

Integer

Action fee in wei

multiplier*

Integer

Ticket multiplier for certain user

{
    "ticket_amount": 50
}
{
    "message": "INCORRECT_CHAIN",
    "code": 400
}
{
    "message": "INTERNAL_SERVER_ERROR",
    "code": 500
}

✌️
💻
here