Hello QuickNode! I’ve been using the GraphAPI recently and I’m not sure what unit of payment the “response” here is talking about.
In other words, is it based on “ETH” or is it based on “MATIC”, etc.
graph-api: QuickNode - Graph API Playground
(fyi, contract in opensea: https://opensea.io/collection/polyfactions)
query:
query MyQueryAPI($contractAddress: String!, $filter: ERC721CollectionStatsInput) {
polygon {
contract(contractAddress: $contractAddress) {
... on NFTContract {
collection {
... on ERC721Collection {
stats(filter: $filter) {
averageInNativeToken
ceilingInNativeToken
floorInNativeToken
totalSales
volumeInNativeToken
}
}
}
}
}
}
}
params :
{
"contractAddress": "0xD96E1816569a881459E8354A380415908C6A7F78",
"filter": {
"timeRange": {
"gte": "2010-07-15T00:00:00Z",
"lt": "2023-08-15T00:00:00Z",
}
},
}
response:
{
"data": {
"polygon": {
"contract": {
"collection": {
"stats": {
"averageInNativeToken": 20.892307602491574, // <= what is payment unit of this? matic? or eth
"ceilingInNativeToken": 2000,
"floorInNativeToken": 0.0023, // <= 0.0023 "ETH" or 0.0023 "MATIC" or 0.0023 "?"
"totalSales": 1514,
"volumeInNativeToken": 31630.953710172245
}
}
}
}
}
}