fetch volume for smart contract

Returns transfers on Ethereum and Polygon, where currency is 0xa5f1…f215, date since 2022-12-12 and date till 2022-12-14: date date, currency symbol and amount.

By Arun · saved 4 January 2023 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $tokens: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      currency: {is: $tokens}
      amount: {gt: 0}
      date: {since: $from, till: $till}
    ) {
      date {
        date(format: $dateFormat)
      }
      currency {
        symbol
      }
      amount_usd: amount(in: USD)
      amount
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "matic",
  "tokens": "0xa5f1ea7df861952863df2e8d1312f7305dabf215",
  "from": "2022-12-12",
  "till": "2022-12-14T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries