token information AS

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 20 January 2022 · run 14 times · Bitquery API v1

What it returns

Filters

The query

query($baseCurrency : String!, $quoteCurrency : String!){
  ethereum(network: bsc) {
    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: $baseCurrency}) {
        symbol
        name
      }
    }
    dexTrades(
      baseCurrency: {is: $baseCurrency}
      quoteCurrency: {is: $quoteCurrency}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      quotePrice
    }
  }
}

Variables

{
  "baseCurrency":"0x603c7f932ED1fc6575303D8Fb018fDCBb0f39a95",
  "quoteCurrency":"0x55d398326f99059ff775485246999027b3197955"
}

Similar queries