Bug -blockpond1

Returns one DEX trade on Ethereum, where DEX smart contract is 0x11b8…97f6, block time since 2023-05-10 and block time till 2023-05-10: protocol family, protocol name, sender, buy amount, buy buyer, buy currency name, buy smart contract and 10 more fields.

By Divyasshree N · saved 11 May 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($pairAddress: String!, $network: evm_network!) {
  EVM(network: $network, dataset: combined) {
    DEXTrades(
      where: {Trade: {Dex: {SmartContract: {is: $pairAddress}}}, Block: {Time: {since: "2023-05-10T10:32:11Z", till: "2023-05-10T10:33:11Z"}}}
      limit: {count: 1}
    ) {
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Sender
        Buy {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Price
          Seller
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Price
          Seller
        }
      }
    }
  }
}

Variables

{
  "pairAddress": "0x11b815efb8f581194ae79006d24e0d814b7697f6",
  "network": "eth"
}

Similar queries