Subscribe to the Same Event Across Multiple Contracts

Streams events on Ethereum as they happen, where log smart contract is 0x943a…afa8 or 0x3b62…1a06 and signature name is Approval: block time, block number, transaction hash, from, to, value in USD, transaction value and 3 more fields.

By Divyasshree · saved 30 May 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth) {
    Events(
      where: {Log: {Signature: {Name: {is: "Approval"}}, SmartContract: {in: ["0x943af17c37207c9d7a27d12cb5055542a0b7afa8","0x3b62021a8b9fc78106f964853dc375933ab71a06"]}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        From
        To
        ValueInUSD
        Value
        Type
      }
      Log {
        Signature {
          Name
        }
        SmartContract
      }
    }
  }
}

Similar queries