Try   HackMD

🔥CurioCards GraphQL Query Bonanza🔥

Step 1: Go to -https://thegraph.com/explorer/subgraph?id=JBnWrv9pvBvSi2pUZzba3VweGBTde6s44QvsDABP47Gt&v=2&view=Playground

Step 2: See the left hand side has a bit of example query code. Grab a query from below and paste it in - then hit Run Button (You can also run the Example Query to get a feel for it)

Step 3: The Output should be shown

If you would like a funded API key for a BOT or use outside of the playground contact:

Mack#9736 on Discord

Find out more about this here

Card Balances for Address

{
  cardBalances(where: {user: "REPLACE WITH LOWERCASE ADDRESS YOU WOULD LIKE TO QUERY"}) {
    type {
      name
      address
    }
    unwrapped
    wrappedOfficial
    wrappedUnofficial
    user {
      id
    }
  }
}

Card Types and their Balances (1000 entity return limit)

{
  cardTypes(first: 31) {
    id
    name
    supply
    symbol
    address
    balances {
      id
      wrappedOfficial
      wrappedUnofficial
      unwrapped
    }
  }
}

Card Balances for CardType (17b in this example)

{
  cardTypes(where: {id: "0xe0b5e6f32d657e0e18d4b3e801ebc76a5959e123"}) {
    id
    name
    supply
    symbol
    balances {
      id
      wrappedOfficial
      wrappedUnofficial
      unwrapped
    }
  }
}

Get All Holders of Curio8 (or other Cards = just replace address to erc20 address for cardType)

First 1000

query {
  cardBalances(first: 1000, where : {type : "0x2fce2713a561bb019bc5a110be0a19d10581ee9e"}) {
    id
		unwrapped
		wrappedOfficial
		wrappedUnofficial
  }
}

Next 1000

query {
  cardBalances(skip: 1000, first: 1000, where : {type : "0x2fce2713a561bb019bc5a110be0a19d10581ee9e"}) {
    id
		unwrapped
		wrappedOfficial
		wrappedUnofficial
  }
}