not work transaction count in Optimism

Returns transactions on Optimism, sorted by block month, highest first: block date, chain ID and count.

By Nadia · saved 18 February 2026 · run 2 times · Bitquery API v2

What it returns

The query

query MyQuery($network: evm_network!) {
  EVM(network: $network, dataset: combined) {
    Transactions(
      where: {Block: {Date: {after_relative: {months_ago: 6}}}}
      orderBy: {descendingByField: "Block_month"}
    ) {
      Block {
        month: Date(interval: {in: months, count: 1})
      }
      ChainId
      count
    }
  }
}

Variables

{
  "network": "optimism"
}

Similar queries