3) Get Router Address From Factory And Base Token

Returns the latest DEX trade on Ethereum and klaytn, where base currency is 0x4cd7…0b5a and exchange address is 0x36fa…db2b: block height and to address.

By Luke Halley · saved 20 December 2022 · run 25 times · Bitquery API v1

What it returns

Filters

The query

query GetRouterAddressFromPairBaseCurrency ($network: EthereumNetwork!, $factoryAddress: String!, $baseCurrency: String!, $limit: Int!) {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: $limit, desc: "block.height"}
      baseCurrency: {is: $baseCurrency}
      exchangeAddress: {is: $factoryAddress}
    ) {
      block {
        height
      }
      transaction {
        to {
          address
        }
      }
    }
  }
}

Variables

{
  "limit": 1,
  "network": "klaytn",
  "factoryAddress": "0x36fae766e51f17f8218c735f58426e293498db2b",
  "baseCurrency": "0x4cd7025bd6e1b77105b90928362e6715101d0b5a"
}

Similar queries