base_zero_decemals

Returns DEX trades by token on Base, where block time after 2025-09-30: block time, transaction hash, protocol name, currency symbol, currency name, smart contract, decimals and 9 more fields.

By alex · saved 30 September 2025 · run 79 times · Bitquery API v2

What it returns

Filters

The query

query pairs($network: evm_network) {
  EVM(network: $network) {
    DEXTradeByTokens(
      where: {TransactionStatus: {Success: true}, any: [{Trade: {Side: {Currency: {Decimals: {eq: 0}, Fungible: true}}}}, {Trade: {Currency: {Decimals: {eq: 0}, Fungible: true}}}], Block: {Time: {after: "2025-09-30T1:55:19Z"}}}
    ) {
      Block {
        Time(maximum: Block_Time)
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolName
        }
        Currency {
          Symbol
          Name
          SmartContract
          ProtocolName
          Decimals
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
            ProtocolName
            Decimals
          }
        }
        price_last: PriceInUSD(maximum: Block_Number)
      }
      amount: sum(of: Trade_Side_Amount)
      usd: sum(of: Trade_Side_AmountInUSD)
      buy: count(if: {Trade: {Side: {Type: {is: sell}}}})
      sell: count(if: {Trade: {Side: {Type: {is: buy}}}})
    }
  }
}

Variables

{
  "network": "base",
  "token": "0xdaf1695c41327b61b9b9965ac6a5843a3198cf07",
  "time_ago": "2025-03-31T15:41:10Z"
}

Similar queries