I have created an Open Zeppelin subgraph so I can track many different ERC20
, ERC721
and ERC1155
smart contracts.
My config.json
looks like this:
{
"output": "generated/sample.",
"chain": "mainnet",
"datasources": [
{
"address": "0x8B0D1a282f132f67fc2018CeB797890D9C513710",
"startBlock": 31900771,
"module": [
"erc20",
"ownable",
"accesscontrol"
]
},
{
"address": "0x63dbcD091fBE539B70fB855bB941055e7EE80324",
"startBlock": 31895100,
"module": [
"erc721",
"ownable",
"accesscontrol"
]
},
{
"address": "0xDE7195E8865576A1c9Faae5f7c7d543967bF704E",
"startBlock": 32356993,
"module": [
"erc1155",
"ownable",
"accesscontrol"
]
}
]
}
I am trying to query my wallet to see how many ERC721
tokens I have, like this:
{
account(id: "0xfe02781cc0fe76Bfd2D211430bfa97D2889fd853") {
ERC721tokens {
id
}
}
}
Problem is I am getting this as a result:
{
"data": {
"account": {
"ERC721tokens": []
}
}
}
I actually hold 2 tokens of 0x63dbcD091fBE539B70fB855bB941055e7EE80324
(you can check it here).
How can I get the right balance of ERC721
? My subgraph is 100% synced and has no issues.