metamask router trades

Returns the latest 100 DEX trades on Ethereum, where transaction hash is 0x9c73…8013: transaction hash, from, to, sender, buy buyer, buy seller, buy currency name and 11 more fields.

By gaurav · saved 27 January 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Transaction: {Hash: {is: "0x9c7391a91d1690cb1b723ecfcb96c26d3a958a859511c69594f91049f1dd8013"}}}
      limit: {count: 100}
      orderBy: {descending: Block_Number}
    ) {
      Transaction {
        Hash
        From
        To
      }
      Trade {
        Sender
        Buy {
          Buyer
          Seller
          Currency {
            Name
            SmartContract
          }
          Amount
          Price
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
          Buyer
          Amount
          Seller
          Price
        }
      }
      Block {
        Number
        Time
      }
    }
  }
}

Similar queries