Query editor
WITH daily_data AS (SELECTdate_trunc('day', evt_block_time) AS day,SUM(CAST(value AS DOUBLE)) AS daily_sats, -- Daily volume in satsSUM(CAST(value AS DOUBLE)) / 1e8 AS daily_cbbtc -- Daily volume in whole CBBTCFROMerc20_base.evt_TransferWHEREcontract_address = 0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf -- CBBTC TokenAND "to" = 0x1D3F8fcfE508D7031c242E213B27FbE432f52c67 -- Your ContractAND evt_block_time >= now() - interval '30' day -- Last 30 daysGROUP BY 1)SELECTday,daily_sats,daily_cbbtc,-- This creates the "All Time" growing total for the bar graphSUM(daily_sats) OVER (ORDER BY day ASC) AS cumulative_sats_all_timeFROMdaily_dataORDER BYday DESC