greater than or greater or equal to

Returns token holders on Ethereum, where balance amount is at least 50 and balance amount is above 50: unique of holder address.

By Nikhil · saved 23 October 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    greater_than_50: TokenHolders(
      date: "2023-10-23"
      tokenSmartContract: "0x23581767a106ae21c074b2276D25e5C3e136a68b"
      where: {Balance: {Amount: {ge: "50"}}}
    ) {
      # expecting it to return 3 as there are only 3 holder which has more than 50 NFTs
      # in there wallet
      uniq(of: Holder_Address)
    }
    greater_than_or_equal_to_50: TokenHolders(
      date: "2023-10-23"
      tokenSmartContract: "0x23581767a106ae21c074b2276D25e5C3e136a68b"
      where: {Balance: {Amount: {gt: "50"}}}
    ) {
      # expecting it to return 4 as there are only 4 holder which has more than 50 NFTs
      # in there wallet
      uniq(of: Holder_Address)
    }
  }
}

Similar queries