Please refer to the documentation website for a thorough guide on all Envio indexer features
pnpm dev
pnpm codegen
Visit http://localhost:8080 to see the GraphQL Playground, local password is testing
.
query MyQuery {
Trade {
tradeType
amount
ethAmount
id
token
trader
}
}
query MyQuery {
Monster {
id
name
symbol
marketCap
price
supply
experiencePoints
}
}
query MyQuery {
Trader {
id
numberOfTrades
holdings {
balance
monster
}
}
}
query MyQuery {
Trader {
points
}
}
query MyQuery {
Trader {
id
trades {
tradeType
amount
token
}
}
}
query MyQuery {
Monster(where: {id: {_eq: "0xEcE0d869b88fb1Daf726609990C8244d2b9A400D"}}) {
id
marketCap
}
}
query MyQuery {
MarketCapSnapshot(where: {monster: {_eq: "0xEcE0d869b88fb1Daf726609990C8244d2b9A400D"}, _and: {timestamp: {_lte: "$timestampOf24HoursAgo"}}}, limit: 1, order_by: {timestamp: desc}) {
marketCap
}
}
query MyQuery {
Monster(where: {id: {_eq: "0xEcE0d869b88fb1Daf726609990C8244d2b9A400D"}}) {
id
totalVolumeTraded
}
}
query MyQuery {
TotalVolumeTradedSnapshot(where: {monster: {_eq: "0xEcE0d869b88fb1Daf726609990C8244d2b9A400D"}, _and: {timestamp: {_lte: "$timestampOf24HoursAgo"}}}, limit: 1, order_by: {timestamp: desc}) {
totalVolumeTraded
}
}
query MyQuery {
Monster(where: {id: {_eq: "0xEcE0d869b88fb1Daf726609990C8244d2b9A400D"}}) {
id
winLoseRatio
}
}
- Current market cap: For each monster sum the marketCap
query MyQuery {
Trader {
id
holdings {
marketCap
}
}
}
- 24 Hours ago market cap: For each monster sum the marketCap
query MyQuery {
Monster {
id
}
}
query MyQuery {
Trader(where: {id: {_eq: "0x8c0686723804A0B7201151852C94Bd17DD043C21"}}) {
id
holdingsSnapshots(where: {timestamp: {_lte: 1741371238}, _and: {monster_id: {_eq: "0xEcE0d869b88fb1Daf726609990C8244d2b9A400D"}}}, limit: 1, order_by: {timestamp: desc}) {
marketCap
monster {
id
}
}
}
}
Where absolute profit = total holdings sales value - (total holdings cost value - current holdings value) Where absolute profit = totalHoldingsSales - (totalHoldingsCost - marketCap) A negative value indicating a loss
query MyQuery {
Trader {
id
holdings {
totalHoldingsCost
totalHoldingsSales
marketCap
}
}
}