Query editor
-- 元クエリ: 2006217 "BracketX channel daily activity" / https://dune.com/queries/2006217-- BracketX の channel コントラクト宛トランザクションを 1 時間ごとに集計し、ユニーク送信者(DAU)と件数を出す。-- 変更点:-- - Spark のバッククォート識別子 `from` を Trino の "from" に(from は予約語)-- - アドレス列は DuneSQL では varbinary なので `lower('0x..')` の文字列比較をやめ、`0x..` の varbinary リテラル直書きに変更。予約語の to / from は "to" / "from" と引用select date_trunc('hour',block_time) as hour, count(distinct "from") as DAU, count(distinct hash) as daily_tx fromarbitrum.transactionswhere "to" = 0x68dfd147899d5029e0cb70d0c38886e77bf11da7group by 1