[23 Sep onwards] Avalanche stats (tx,dau,gas price)

adapted from bitquery avax release document https://community.bitquery.io/t/avalanche-blockchain-apis/823

By David · saved 28 September 2022 · run 10 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transactions(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      #gasPrice
      #gasValue
      txs: count
      dau:count(uniq:senders)
      averageGasCost_usdt: gasValue(calculate: average in: USDT) # avg gas cost in usdt
      maxGasPrice: gasPrice(calculate: maximum)
      medianGasPrice: gasPrice(calculate: median)

    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "avalanche",
  "from": "2022-09-23",
  "till": null ,
  "dateFormat": "%Y-%m-%d"
}

Similar queries