Subscription - All latest events for WETH token smart contract

Streams the latest 10 events on Ethereum as they happen, where log smart contract is 0xc02a…6cc2 and block date after 2023-04-01: signature name, parsed, signature signature, arguments name, integer, string, value address and 8 more fields.

By gaurav · saved 25 May 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth, trigger_on: head) {
    Events(
      limit: {count: 10}
      orderBy: {descending: Block_Number}
      where: {Log: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Block: {Date: {after: "2023-04-01"}}}
    ) {
      Log {
        Signature {
          Name
          Parsed
          Signature
        }
      }
      Arguments {
        Name
        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
          }
        }
      }
      Transaction {
        From
        Value
        Hash
      }
      Block {
        Number
        Date
      }
    }
  }
}

Similar queries