Skip to content

API Integration

Jonathan Xu edited this page Apr 8, 2020 · 1 revision

Raffles

query MyQuery {
  myriade_alpha_raffles(where: {status: {_eq: "1"}}) {
    exchange_rate
    expiry_date
    pool
    prize
    status
  }
}

exchange_rate: exchange rate from myriade credits to usd (myriade credits * exchange_rate -> USD)

expiry_date: date when the raffle expires

id: id of the raffle (not very relevant)

pool: how many myriade credits have been spent/locked for the raffle (including from other players)

prize: the prize amount in myriade credits

status: represented as a number: (0 -> closed, all amounts refunded, 1 -> active, not yet closed, 2 -> closed, someone won and prize money has been sent)

Clone this wiki locally