Skip to content

Instantly share code, notes, and snippets.

@mariuswatz
Created October 4, 2022 12:53
Show Gist options
  • Save mariuswatz/c78f4875fe5be4820a4764d1a6c2021f to your computer and use it in GitHub Desktop.
Save mariuswatz/c78f4875fe5be4820a4764d1a6c2021f to your computer and use it in GitHub Desktop.
Demo TezTok GraphQL API query to get tokens received for a certain Tezos wallet
// Query to be run on graphiql.teztok.com/
query TokensReceivedHenReunion {
holdings(where: {first_received_at: {_gte: "09-29-2022"}, amount: {_gte: "0"}, holder_address: {_eq: "tz2NY3Fgt5QufrYGP1JKdvLKcWWt86sLsqrS"}}) {
amount
token {
fa2_address
token_id
name
description
artifact_metadata
metadata {
tokens {
thumbnail_uri
tags {
tag
}
}
}
artist_address
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment