SC events

Returns one event on Ethereum, where log smart contract is 0xdac1…1ec7 and currency smart contract is 0xdac1…1ec7, sorted by count, highest first: chain ID, count, signature name, signature signature, signature hash, block date, currency name and 2 more fields.

By Nadia · saved 17 January 2024 · run 23 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $address: String) {
  EVM(dataset: archive, network: $network) {
    Events(
      where: {Log: {SmartContract: {is: $address}}}
      limit: {count: $limit}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      count
      Log {
        Signature {
          Name
          Signature
          SignatureHash
        }
      }
      Block {
        Date(maximum: Block_Date)
      }
    }
    Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "from": "2023-08-07",
  "till": "2023-08-07"
}

Similar queries