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.
What it returns
- block time
- block number
- transaction hash
- block hash
- from
- to
- arguments name
- integer
- value address
- string
- big integer
- hex
- bool
Filters
- signature name is Questi…ized
- log header address is 0x6507…f2A7
- signature name is Condit…tion
- log header address is 0x4d97…6045
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
- Polymarket: Neg Risk CTF Exchange contract -- OrderFilled Event · Polygon · Events
- Polymarket: Neg Risk CTF Exchange contract -- OrderMatched Event · Polygon · Events
- PolyMarket - Latest Resolved Questions · Polygon · Events
- find question creation of question id · Polygon · Events
- find question creation · Polygon · Events