Query editor
selectdate_trunc('day', "block_time") as day,count(*) as total,count(casewhen bytearray_substring ("data", 68, 1) = 0x01 then 1else nullend) as Common,count(casewhen bytearray_substring ("data", 68, 1) = 0x02 then 1else nullend) as Uncommon,count(casewhen bytearray_substring ("data", 68, 1) = 0x03 then 1else nullend) as Rare,count(casewhen bytearray_substring ("data", 68, 1) = 0x04 then 1else nullend) as Epic,count(casewhen bytearray_substring ("data", 68, 1) = 0x05 then 1else nullend) as Legendaryfrompolygon.transactionswhere(to = 0xa2563057eb415f218342bf0c572d6a464cdd6f0fOR to = 0x9bc085bb7249147df0cd4e7a0e5fbcb0a0968874)AND success = trueAND bytearray_substring (data, 1, 4) = 0x4e0f57a1AND block_time >= date_trunc('day', now()) - interval '10' daygroup by1