The subgraph provides all the information needed for the fakegotchis.com webpage. It allows to fetch all the happened events on-chain as well as useful entities for the Cards and NFTs. Furthermore in provides some useful stats. The full documentation can be found here LINK
The endpoint is: https://api.thegraph.com/subgraphs/name/aavegotchi/fake-gotchis-matic
{
erc1155Transfers(first: 5) {
from {
id
}
to {
id
}
valueExact
}
metadataFlags(first: 5) {
flaggedBy {
id
}
metadata {
id
}
}
metadataLikes(first: 5) {
likedBy {
id
}
metadata {
id
}
}
}
the response contains the ID of the aavegotchi and the svg...
Cards and NFTs
Cards are are ERC1155s and NFTs ERC721. The Subgraph allows to query for both:
the response contains all the information: In this case the accounts owns multiple NFTs, but no cards.
Statistics
The subgraph provides also some useful stats. For example how large is the supply and how many cards and nfts are already burned.
The response looks like this:
NFT Proposals
It takes time to mint a NFT. It requires that the card is burned and some art is added. After some days the NFT can be minted. Proposals can be liked, flagged or change their status.
{
account(id:"0x01c28a969a7d0ba03419c8c80be59928c4732cd9") {
id
ERC721tokens(first: 3) {
metadata {
name
artistName
description
}
}
ERC1155balances(first: 3) {
id
}
}
}
{
"data": {
"account": {
"id": "0x01c28a969a7d0ba03419c8c80be59928c4732cd9",
"ERC721tokens": [
{
"metadata": {
"name": "Chubby Gotchi Family Portrait",
"artistName": "Gotchi Bulls",
"description": "These are reimaginings of many actual Aavegotchis that take on a life of their own in the Chubby World!"
}
},
{
"metadata": {
"name": "Chubby Gotchi Family Portrait",
"artistName": "Gotchi Bulls",
"description": "These are reimaginings of many actual Aavegotchis that take on a life of their own in the Chubby World!"
}
},
{
"metadata": {
"name": "Chubby Gotchi Family Portrait",
"artistName": "Gotchi Bulls",
"description": "These are reimaginings of many actual Aavegotchis that take on a life of their own in the Chubby World!"
}
}
],
"ERC1155balances": []
}
}
}
{
metadataActionLogs(where: {status: 0} first: 1) {
name
publisher {
id
}
publisherName
artist {
id
}
artistName
fileHash
flagCount
likeCount
status
}
}