Skip to content

Instantly share code, notes, and snippets.

@newyellow
Created October 23, 2021 15:51
Show Gist options
  • Save newyellow/02c13a919a1aea5a2fcbeb715a9a68b3 to your computer and use it in GitHub Desktop.
Save newyellow/02c13a919a1aea5a2fcbeb715a9a68b3 to your computer and use it in GitHub Desktop.
query AllCollectors($token: bigint = "") {
hic_et_nunc_token_holder(where: {token: {creator_id: {_eq: "tz1LZaY6p4uC7M4qb7MyzcChpaTJS6WMT8Qi"}}, quantity: {_gt: "0"}}) {
holder_id
quantity
token {
id
title
}
}
}
query SecondaryCollectors($token: bigint = "") {
hic_et_nunc_trade(where: {token: {creator_id: {_eq: "tz1LZaY6p4uC7M4qb7MyzcChpaTJS6WMT8Qi"}}, seller_id: {_neq: "tz1LZaY6p4uC7M4qb7MyzcChpaTJS6WMT8Qi"}}, order_by: {timestamp: desc}) {
timestamp
swap {
price
}
amount
buyer_id
seller_id
token {
id
title
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment