Get token0 And token1 by SC

Get token0, token1 using baseCurrency and quoteCurrency

Returns one DEX trade on Ethereum, where smart contract address is 0xefb4…a477: full name, base currency symbol, base currency address, quote currency symbol and quote currency address.

By lukas · saved 31 August 2022 · run 23 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      smartContractAddress: {is: "0xefb47fcfcad4f96c83d4ca676842fb03ef20a477"}
      options: {limit: 1}
    ) {
      exchange {
        fullName
      }
      token0: baseCurrency {
        symbol
        address
      }
      token1: quoteCurrency {
        symbol
        address
      }
    }
  }
}

Similar queries