Guest User

Untitled

a guest
Jun 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # broker query
  2. query {
  3. broker(id: 1) {
  4. title
  5. email
  6. imageSrc
  7. }
  8. }
  9.  
  10. # contract query
  11. query {
  12. contract(id: 1, hash: "8369331e0ec38a864cc52b4bd2a07d0f") {
  13. account
  14. wallet
  15. address
  16. tokensBalance
  17. }
  18. }
  19.  
  20. # validation query
  21. query {
  22. validation(data: {
  23. broker: 1,
  24. amount: 100,
  25. account: "account",
  26. hash: "8369331e0ec38a864cc52b4bd2a07d0f",
  27. ethWallet: "0x123f681646d4a755815f9cb19e1acc8565a0c2ac",
  28. })
  29. {
  30. errors {
  31. fieldName
  32. error
  33. }
  34. contract {
  35. id
  36. address
  37. }
  38. }
  39. }
  40.  
  41. # create contract mutation
  42. mutation {
  43. createContract(data: {
  44. broker: 1,
  45. amount: 100,
  46. account: "account",
  47. hash: "8369331e0ec38a864cc52b4bd2a07d0f",
  48. ethWallet: "0x123f681646d4a755815f9cb19e1acc8565a0c2ac",
  49. })
  50. {
  51. errors {
  52. fieldName
  53. error
  54. }
  55. contract {
  56. id
  57. address
  58. }
  59. }
  60. }
Add Comment
Please, Sign In to add comment