development talk bitquery

Returns DEX trades by token on Base, where currency smart contract is 0x31ed…e831 and transaction hash is 0xeef4…eaef, sorted by block time: block time, block number, trade amount, price in USD, buyer, seller, currency symbol and 16 more fields.

By Akshat · saved 17 March 2026 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  buybot_base: EVM(network: base) {
    DEXTradeByTokens(
      orderBy: {ascending: Block_Time}
      where: {TransactionStatus: {Success: true}, Trade: {Currency: {SmartContract: {is:"0x31eda2dfd01c9c65385cce6099b24b06ef3ae831" }}}, Transaction: {Hash: {is: "0xeef4db5761905fb63e159abdac174d106671bd6cc2ba733345458ff8e6efeaef"}}}

    ) {
      Block {
        Time
        Number
      }
      Trade {
        Amount
        PriceInUSD
        Buyer
        Seller
        Currency {
          Symbol
          SmartContract
          Name
        }
        
        Dex {
          ProtocolName
          SmartContract
        }
        Side {
          Amount
          AmountInUSD
          Currency {
            Symbol
            SmartContract
          }
          Buyer
          Seller
          Type
        }
        Buyer
        Seller
        AmountInUSD
      }
      Transaction {
        Maker: From
        Hash
        Type
        To
      }
      TransactionStatus {
        Success
      }
    }
  }
}

Similar queries