Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # broker query
- query {
- broker(id: 1) {
- title
- email
- imageSrc
- }
- }
- # contract query
- query {
- contract(id: 1, hash: "8369331e0ec38a864cc52b4bd2a07d0f") {
- account
- wallet
- address
- tokensBalance
- }
- }
- # validation query
- query {
- validation(data: {
- broker: 1,
- amount: 100,
- account: "account",
- hash: "8369331e0ec38a864cc52b4bd2a07d0f",
- ethWallet: "0x123f681646d4a755815f9cb19e1acc8565a0c2ac",
- })
- {
- errors {
- fieldName
- error
- }
- contract {
- id
- address
- }
- }
- }
- # create contract mutation
- mutation {
- createContract(data: {
- broker: 1,
- amount: 100,
- account: "account",
- hash: "8369331e0ec38a864cc52b4bd2a07d0f",
- ethWallet: "0x123f681646d4a755815f9cb19e1acc8565a0c2ac",
- })
- {
- errors {
- fieldName
- error
- }
- contract {
- id
- address
- }
- }
- }
Add Comment
Please, Sign In to add comment