Query editor
with decoded as (selectdate_trunc('day', block_time) as "day", tx_hash, casewhen output is nullthen errorwhen substr(output, 1, 4) = 0x08c379a0then CAST(substr(output, 69, LENGTH(output) - 68) as VARCHAR)elseCAST(output as VARCHAR)end as reasonfrom ethereum.traceswhere block_time > now() - interval '30' dayand success = falseand "to" = 0x07964f135f276412b3182a3B2407b8dd45000000), decoded_ascii as (selectday, tx_hash, casewhen substr(reason, 1, 2) = '0x'and regexp_like(substr(reason, 3), '^[0-9a-fA-F]+$')then try(from_utf8(from_hex(substr(reason, 3))))elsereasonend as reasonfrom decoded)selectday, substr(reason, 1, 50) as reason, count(tx_hash) as "txs"from decoded_asciiwhere reason not like '0x'group by1, 2havingcount(tx_hash) >= 1order by1 desc, 3 desc