Balance of a BSC token along with it's price

Returns address details and DEX trades on Ethereum and BNB Chain, where address is 0x1b96…774f and smart contract address is 0x1b96…774f: balance, contract type, currency name, currency symbol, quote currency address, quote currency symbol, quote price and 4 more fields.

By Sayon Sai Dutta · saved 10 June 2022 · run 12 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    totalSupply: address(
      address: {is: "0x1b96b92314c44b159149f7e0303511fb2fc4774f"}
    ) {
      balance
      smartContract {
        contractType
        currency {
          name
          symbol
        }
      }
    }
    price: dexTrades(
      smartContractAddress: {is: "0x1b96b92314c44b159149f7e0303511fb2fc4774f"}
    ) {
      quoteCurrency {
        address
        symbol
      }
      quotePrice
      baseCurrency {
        address
        symbol
      }
      baseAmount
      quoteAmount
    }
  }
}

Similar queries