Jump to content

Dan

Forum Admin
  • Content Count

    884
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by Dan

  1. Using the Primedice API Graphql endpoint: https://api.primedice.com/graphql Authentication You can authenticate with graphql via the http header. We utilise jwt token's for authentication which can be found via https://primedice.com/settings/tokens or for an unrestricted token (access to everything on your account) you can obtain it from your browser's local storage. Authenticated requests require that you use this token in your header by adding it to the "x-access-token" property. { "x-access-token": "token goes here" } Schema Our schema is now locked down and private. To help support developers, I have created this topic to provide assistance to those who would like insights into certain queries or mutations. When someone requests details for a certain aspect of the schema, I will append this topic with the relevant details required to conduct such a query or mutation. Terminology: With graphql, queries are the equivalent of a GET request, where you are asking for information to be returned, whereas a mutation is a POST request where you generally invoke an action. API Client When working with debugging queries using our API, theres a fair few API clients you can utilise to test that you are getting the responses you need. I currently use (and highly recommend) https://insomnia.rest/. It allows you to not only do standard REST requests with API's but also GraphQL requests. It's a great way to test that your queries are working before you throw them into your projects. Examples Send Message Mutation (sends a message to a chat channel) [Authenticated] mutation { sendMessage(chatId: "chat_id_goes_here", message: "message_goes_here") { id user { name } } } Public Chats Query (search for all public chat channels) [Unrestricted] query { publicChats { id name } } Bet List Query (lookup a players bet history) [Unrestricted] { user(name: "Dan") { houseBetList(limit: 50, offset: 0) { id iid bet { ... on CasinoBet { game payout amountMultiplier payoutMultiplier amount currency createdAt } } } } } Bet Info Query (lookup a specific bet) [Unrestricted] { bet(iid: "house:32361565304") { id iid bet { ... on CasinoBet { game payout payoutMultiplier amount createdAt currency user { name } state { ... on CasinoGamePrimedice { result target condition } } } } } } Roll Dice (make a dice bet) [Authenticated] mutation { primediceRoll(amount: 1, target: 50, condition: above, currency: doge) { id payout amountMultiplier payoutMultiplier createdAt nonce } } Please use this topic to submit a request on how to do a certain action with our API and I will ensure to get back to you with the necessary information.
  2. Your bet is now anonymous, could you submit it again and try linking once more? Thanks!
  3. Everyone who has complained about not getting paid has shown me examples of situations where they simply posted a one sentence response. The system is working as intended, thats not considered valuable contribution to the discussion.
  4. That would happen if it isn't high enough quality. If you would like, you can link me the three posts in that section and I can let you know what is wrong with the quality.
  5. I am also confused. Here is your forum reward history for last few days? Could you let me know whats wrong so I can investigate. Cheers!
  6. Are you adding it here? https://api.primedice.com/graphql
  7. I've clearly been lazy, and so has the graphic designer. I need some form of badge made up for the awards before I can grant them. I'll look into it, as I dont want to recycle the ones that were created for Stake.
  8. If you click on the primedice logo at the bottom (in the middle) it will animate on hover and send you back to top on click.
  9. I'm not too sure how many people are actively interested in the growth of the lightning network and its adoption, but as of late there has been a tremendous growth, which could potentially see some price rising across the whole spectrum of the crypto universe. Now with a total capacity of 601 BTC ($2,053,000), the Lightning network has added over 15% of capacity growth during the first month of 2019. The total node count now sits just below 6000, the equivalent of a 16% monthly rise, while there are now above 22,000 channels – 36% more than a month ago. It's certainly hard to argue against the fact that this sort of growth in the middle of a relentless bear market is saying something. Could this be a turning point and a great investment opportunity to buy back in? Only time will tell! You can find more relevant statistics about the network here: https://1ml.com/
  10. What do you mean by "Basic deposit rate"?
  11. We can provide API access to certain people, but its primarily for developers using our services internally. If you can provide some further insights perhaps we can help. Otherwise I suggest using the RSS feed as mentioned above.
  12. All the votes have been officially tallied! Congratulations to all the winners. Some forum flare will be added to all your profiles over the coming days!
  13. At the current price that sounds terrible, but hold on to it and you should be a very wealthy person in a few years 😛
  14. Not only is ripple not decentralised, but it's also mainly owned by the people who created it, which means that the day they decide to cash out, is the day the price crashes, and everyone gets destroyed on their investment.
  15. I lost $7,000 bet on a tennis match that ended up being a bloodbath and the player who was heavily favourite got destroyed in straight sets.
  16. How much money are you anticipating to make from it?
  17. Celebrate Christmas in style by competing in our brand-new Tournament feature! To celebrate this Christmas season and the beginning of a new year, we are hosting a unique Christmas tournament mode. Compete against all the other players on Primedice for a share in a prize pool unlike anything you have seen before! The tournament commences on the 17th and will run until the 6th of January. During the tournament period, the prize pool will grow based on 10% of the accumulated house edge generated by all bets made on Primedice and will be distributed by our "three wise men" to the top 100 players on the leaderboard at the end. Prize Distribution 1st 30% 2nd 16% 3rd 11% 4th 8% 5th 6% 6th 5% 7th 4% 8th 3% 9th 2% 10th 1% 11th - 15th 0.5% 16th -20th 0.3% 21st - 30th 0.2% 31st - 50th 0.15% 51st - 100th 0.1%
  18. From the last 3 weeks or older than that? Because your bet archive is where you can download bets from older than a month.
  19. I can provide a excel spreadsheet with a list of your bets if you would like?
  20. 2018 Primedice Awards It's been another great year here at Primedice, time to vote for the most iconic people! In retrospect this has been one of the biggest years to date for Primedice and its growth, and with that some really great memories and moments have come with it. These awards are all about reminiscing on the year and acknowledging those players and staff who made the biggest impact on your time here at Primedice in 2018. Acknowledge the passion and dedication of your favourite community members and cast your vote today! The award categories are: funniest person, friendliest person, forum hero, chat hero, most lovable, most intelligent, most influential, best moderator, funniest support, favourite support and favourite staff. All voting will close at the end of the new years countdown, which is a fitting end to our year with Primedice. Form Funniest: Friendliest: Forum Hero: Chat Hero: Most Lovable: Most Intelligent: Most Influential: Best Moderator: Funniest Support: Favourite Support: Favourite Staff: Rules Only vote for one person per category. You can only vote for the same person in a maximum of two categories. You can leave categories empty if you feel you don't have an eligible candidate. You can only vote once, no alt accounts, no family member accounts. 15 post count minimum to vote. Voting closes at 00.00 GMT on the 1st of January 2019.
  21. You spelt Satoshi incorrect i your referral program heading text. What is this topic about? Are you advertising a service or something?
  22. You can ask live support, but I do not believe there is anyway to know your current rank.
  23. Stake is a bit more invested into having a larger community because it is a full fledged Casino. One thing we have learnt about the player base on Primedice is that they are more particular about being a close knit community and we agree that's how it should be. Primedice is the best you can get when it comes to dicing, and we don;t want to spoil that by flooding people with crappy content.
  24. Loving the insights, would be cool to get this all on to some kind of spreadsheet or something to maintain tracking of results and better organisation of information.
×