Token information v2

Returns one transfer on Ethereum and BNB Chain, where base currency is 0x603c…9a95, quote currency is 0x55d3…7955 and amount is above 0, sorted by block height transaction index, highest first: amount, currency symbol, currency name, block height, timestamp time, transaction index and quote price.

By Casor · saved 4 February 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query($network: EthereumNetwork, $base: String!, $quote: String!){
        ethereum(network: $network) {
          transfers(date: {since: null, till: null}, amount: {gt: 0}) {
            minted: amount(
              calculate: sum
            sender: {in: ["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000001"]}
        )
        burned: amount(
              calculate: sum
            receiver: {in: ["0x0000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000001", "0x000000000000000000000000000000000000dead"]}
        )
        currency(currency: {is: $base}) {
              symbol
            name
      }
    }
      dexTrades(
            baseCurrency: {is: $base}
          quoteCurrency: {is: $quote}
          options: {desc: ["block.height", "transaction.index"], limit: 1}
      ) {
            block {
              height
            timestamp {
                time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
        transaction {
              index
      }
        quotePrice
    }
  }
}

Variables

{
  "network":"bsc",
  "base":"0x603c7f932ed1fc6575303d8fb018fdcbb0f39a95",
  "quote":"0x55d398326f99059ff775485246999027b3197955"
}

Similar queries