question id issue fix

Returns one event on Polygon, where signature name is Questi…ized, log header address is 0x6507…f2A7 and signature name is Condit…tion: block time, block number, transaction hash, block hash, from, to, arguments name and 6 more fields.

By Kshitij Mahajan · saved 20 January 2026 · Bitquery API v2

What it returns

Filters

The query

query GetEventTimeDifference($questionId: String!){
  EVM(dataset: archive, network: matic) {
  QuestionInit: Events(
    where: {
      Block: {Time: {since_relative: {days_ago: 30}}}
      Arguments: {
        includes: {
          Name: {is: "questionID"}
          Value: {Bytes: {is: $questionId}}
        }
      }
      Log: {Signature: {Name: {is: "QuestionInitialized"}}}
      LogHeader: {Address: {is: "0x65070BE91477460D8A7AeEb94ef92fe056C2f2A7"}}
    }
    limit: {count: 1}
  ) {
    Block {
      Time
      Number
    }
    Transaction {
      Hash
    }
  }

		ConditionPrep: Events(
			where: {
        Block: {Time: {since_relative: {days_ago: 10}}}
        Arguments: {
          includes: {
            Name: {is: "questionId"}
            Value: {Bytes: {is: $questionId}}
          }
        }
        Log: {Signature: {Name: {is: "ConditionPreparation"}}}
        LogHeader: {Address: {is: "0x4d97dcd97ec945f40cf65f87097ace5ea0476045"}}
      }
      limit: {count: 1}
    ) {
      Block {
        Time
        Number
        Hash
      }
      Transaction {
        Hash
        From
        To
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
	}
}

Variables

{
  "questionId": "0x2dcbea6a5d753c93f1976f938ca26ba123be94a57708f79879fc28d375be1464"
}

Similar queries