Swap Events Arbitrum

Historical data This query already reads history - it uses the archive dataset, which needs the historical data add-on for this chain. Without the add-on it fails with 'access restricted: your plan only allows realtime'. Drop the dataset argument to fall back to the recent window. Datasets: https:/

By Divyasshree N · saved 13 September 2023 · run 9 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query already reads history - it uses the archive dataset, which
#   needs the historical data add-on for this chain.
#
#   Without the add-on it fails with 'access restricted: your plan only allows
#   realtime'. Drop the dataset argument to fall back to the recent window.
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

query ($network: evm_network, $limit: Int, $method: String) {
  EVM(dataset: archive, network: $network) {
    Events(
      where: {Log: {Signature: {SignatureHash: {is: $method}}}}
      limit: {count: $limit}
      orderBy: {descending: Block_Time}
    ) {
      ChainId
      Transaction {
        Hash
      }
      Log {
        Signature {
          Name
        }
      }
      Fee {
        SenderFee
      }
      Block {
        Time
        Number
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "arbitrum",
  "method": "c42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67"
}

Similar queries