Jump to content

dicedice

Noob
  • Content Count

    2
  • Joined

  • Last visited

  1. Thanks @Dan, I also changed Bet to CasinoBet and it works again. Here is final code if somebody needs: mutation { primediceRoll(amount: 0.001, target: 90.0, condition: above, currency: doge) { ...BetFragment ...PrimediceBetStateFragment __typename } } fragment BetFragment on CasinoBet { active id payoutMultiplier amountMultiplier amount payout updatedAt currency game nonce serverSeed { seedHash } clientSeed { seed } user { id name balances { available { currency amount } } __typename } __typename } fragment PrimediceBetStateFragment on CasinoBet { state { ... on CasinoGamePrimedice { result target condition __typename } __typename } __typename }
  2. Hi @Dan, 2 moths ago (or so) this request was working: {"operationName":null,"variables":{},"query":"mutation {\n primediceRoll(amount: 0.001, target: 90.0, condition: above, currency: doge) {\n ...BetFragment\n ...PrimediceBetStateFragment\n __typename\n }\n}\n\nfragment BetFragment on Bet {\n active\n id\n iid\n payoutMultiplier\n amountMultiplier\n amount\n payout\n updatedAt\n currency\n game\n nonce\n serverSeed {\n seedHash\n }\n clientSeed {\n seed\n }\n user {\n id\n name\n balances {\n available {\n currency\n amount\n }\n }\n __typename\n }\n __typename\n}\n\nfragment PrimediceBetStateFragment on Bet {\n state {\n ... on BetGamePrimedice {\n result\n target\n condition\n __typename\n }\n __typename\n }\n __typename\n}\n"} Today it returns "HTTP Error 400: Bad Request" This code is working ok: {"operationName":"ActiveRaces","variables":{},"query":"query ActiveRaces {\n activeRaces {\n ...RaceFragment\n __typename\n }\n}\n\nfragment RaceFragment on Race {\n id\n name\n currency\n type\n startTime\n endTime\n status\n __typename\n}\n"} so probably is problem only in query and the rest code is ok: What was changed in API last weeks? How to fix roll dice request?
×