subscription to listen to contract ownership rennouncement

This is a subscription that listens to OwnershipTransferred event with newOwner to null address

By Nikhil · saved 2 January 2024 · run 12 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth) {
    Events(
      where: {Log: {Signature: {Name: {is: "OwnershipTransferred"}}}, Arguments: {includes: {Name: {is: "newOwner"}, Value: {Address: {is: "0x0000000000000000000000000000000000000000"}}}}}
      limit: {count: 10}
    ) {
      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
          }
        }
      }
      Log {
        Signature {
          Name
          Parsed
        }
      }
    }
  }
}

Similar queries