Skip to content

Instantly share code, notes, and snippets.

@raveeshbhalla
Last active January 25, 2022 06:09
Show Gist options
  • Save raveeshbhalla/a86fc5966bdad947e1bab5e726d6af2e to your computer and use it in GitHub Desktop.
Save raveeshbhalla/a86fc5966bdad947e1bab5e726d6af2e to your computer and use it in GitHub Desktop.
Graph Protocol ERC 1155 query
{
account(id: "0x740b42097755eb6f19604727fe799b4fd9499e14") {
id
ERC1155balances {
token {
id
identifier
uri
}
}
}
}
@raveeshbhalla
Copy link
Author

Output

{
  "data": {
    "account": {
      "ERC1155balances": [
        {
          "token": {
            "id": "0x495f947276749ce646f68ac8c248420045cb7b5e/0xbd67fecb509dbcbd2216e5c60c63af8eb69225f40000000000003b0000000001",
            "identifier": "85670872154840651902207084339277238286059723949712384712776191570064495869953",
            "uri": null
          }
        },
        {
          "token": {
            "id": "0xd07dc4262bcdbf85190c01c996b4c06a461d2430/0xb080a",
            "identifier": "722954",
            "uri": "/ipfs/QmWWSTvw3iLv6V32SFPoxWGa1bVa2Dj9wYgKqcDi1SkGJz"
          }
        }
      ],
      "id": "0x740b42097755eb6f19604727fe799b4fd9499e14"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment