queries/subsquid/general/holderOfCollectionById.graphql
query holderOfCollectionById($id: String!, $account: String!) {
nftEntities(
where: {
burned_eq: false
currentOwner_eq: $account
collection: { id_eq: $id }
}
orderBy: blockNumber_DESC
limit: 30
offset: 0
) {
id
name
sn
}
nftEntitiesConnection(
where: {
burned_eq: false
currentOwner_eq: $account
collection: { id_eq: $id }
}
orderBy: blockNumber_DESC
) {
totalCount
}
}