holders

Returns the latest token holder on Ethereum, where currency smart contract is 0x5300…0004, block date is 2024-03-17 and balance amount is above 0: unique of holder address, currency name, currency symbol, block date and trade price.

By thegarn · saved 17 March 2024 · run 58 times · Bitquery API v2

What it returns

Filters

The query

query holders($start_date: String!, $contract_addr: String!) {
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      tokenSmartContract: $contract_addr
      where: {Balance: {Amount: {gt: "0"}}}
      date: $start_date
    ) {
      uniq(of: Holder_Address)
      Currency {
        Name
        Symbol
      }
    }
    DEXTradeByTokens(
      orderBy: {descending: Block_Date}
      where: {Trade: {Currency: {SmartContract: {is: $contract_addr}}}, Block: {Date: {is: $start_date}}}
      limit: {count: 1}
    ) {
      Block {
        Date(interval: {in: days})
      }
      Trade {
        #high: Price(maximum: Trade_Price)
        #low: Price(minimum: Trade_Price)
        #open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
      }
    }
  }
}

Variables

{
  "start_date": "2024-03-17",
  "contract_addr": "0x5300000000000000000000000000000000000004"
}

Similar queries