Query editor
with purchase as (selectdate_trunc('day', block_time) as day,sum(bytearray_to_int256(substring(data from 65 for 32))/1e18) as spentfrom ethereum.logswhere contract_address = 0xb8de22e7a5ea047C2f73d87E7626dfcD93EdBEC0and topic0 = 0x26dec4fc431e2dc35a0699309f317c342b316dfa5324a36eb812a2d0ef4c09cband block_time > cast('2024-06-01' as timestamp)group by 1order by 1 desc),days as (select cast(day as timestamp) as dayfrom unnest(sequence(date('2024-06-13'), cast(now() as date), interval '1' day)) as t(day))selectd.day as day,coalesce(p.spent, 0) as spent_per_dayfrom days dleft join purchase p on d.day = p.dayorder by 1 desc;