Issue with The Graph Query #89
-
Hi Team, I tried to use the Graph provided for the mainnet, but i have difficulty. For example, if I want to query open buy nows for specific callers I tried the following {
nftMarketBuyNows(orderBy: dateCreated, orderDirection: desc,
where: {seller:"0x5d7b71cda3ce450b5db872776c3524e574ee0b7a", status: Open}) {
id,
dateCreated,
nft {
id,
tokenId,
dateMinted,
},
nftContract {
id,
name,
symbol
},
status,
seller {
id
},
amountInETH,
}
} the query above will return information, but if I change seller to Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Subgraph queries are case sensitive - and for addresses Subgraph uses all lowercase while Foundation.app prefers the checksum format. So to run the query, you should first {
nftMarketBuyNows(orderBy: dateCreated, orderDirection: desc,
where: {seller:"0xef76173f4eb704e83dbd4c51edd147c95f3adc7c", status: Open}) {
id,
dateCreated,
nft {
id,
tokenId,
dateMinted,
},
nftContract {
id,
name,
symbol
},
status,
seller {
id
},
amountInETH,
}
} hth - let us know if you have any other questions |
Beta Was this translation helpful? Give feedback.
Subgraph queries are case sensitive - and for addresses Subgraph uses all lowercase while Foundation.app prefers the checksum format. So to run the query, you should first
.toLowerCase()
the address. Then the query works with that other address, e.g.:hth - let us know if you have any other questions