get_token_address_by_pair

for QR

Returns one DEX trade on Ethereum, where sell currency smart contract is 0xc02a…6cc2 and buy buyer is 0xaeca…4e77: sell smart contract, sell currency symbol, sell buyer, sell seller, buy currency symbol, buy smart contract, buy buyer and 2 more fields.

By aboba · saved 2 November 2023 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query get_token_address_by_pair{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}, Buy: {Buyer: {is: "0xaeca06cd3948e8c28a50f0520202c59f639f4e77"}}}}
      limit: {count: 1}
    ) {
      Trade {
        Sell {
          Currency {
            SmartContract
            Symbol
          }
          Buyer
          Seller
        }
        Buy {
          Currency {
            Symbol
            SmartContract
          }
          Buyer
          Seller
        }
        Sender
      }
    }
  }
}

Similar queries