holders

Returns the latest token holder on Ethereum, where currency smart contract is 0x1258…e870 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 12 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}}}}
      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-10",
  "contract_addr": "0x1258D60B224c0C5cD888D37bbF31aa5FCFb7e870"
}

Similar queries