Subscribing to specific events on Ethereum

Streams events on Ethereum as they happen, where log smart contract is 0xdac1…1ec7 and signature name is Transfer: chain ID, call index, arguments index, arguments name, path index, path name, path type and 16 more fields.

By gaurav · saved 10 April 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth) {
    Events(
      where: {Log: {Signature: {Name: {is: "Transfer"}}, SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}
    ) {
      ChainId
      Call {
        Index
      }
      Arguments {
        Index
        Name
        Path {
          Index
          Name
          Type
        }
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Log {
        LogAfterCallIndex
        EnterIndex
        ExitIndex
        Index
        SmartContract
        Signature {
          Parsed
          Signature
          SignatureHash
          Name
        }
      }
    }
  }
}

Similar queries