SVG Subgraph
This subgraph provides the current and previous SVGs from the aavegotchis. The full documentation can be found here LINK
Attention: This subgraph is currently in beta status and the API may change over time.
The endpoint is: https://api.thegraph.com/subgraphs/name/froid1911/aavegotchi-svg The Playground can be found HERE
The SVG of an Aavegotchi can be queried as follows:
1
{
2
aavegotchi(id: 4430) {
3
id
4
svg
5
}
6
}
Copied!
the return contains the ID of the aavegotchi and the svg...
1
{
2
"data": {
3
"aavegotchi": {
4
"id": "4430",
5
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><style>.gotchi-primary{fill:#64438E;}.gotchi-secondary{fill:#EDD3FD;}.gotchi-cheek{fill:#F696C6;}.gotchi-eyeColor{fill:#5D24BF;}.gotchi-primary-mouth{fill:#64438E;}.gotchi-sleeves-up{display:none;}.gotchi-handsUp{display:none;}.gotchi-handsDownOpen{display:block;}.gotchi..."
6
}
7
}
8
}
Copied!
Last modified 3mo ago
Copy link