Query editor
WITHtxs AS (SELECTblock_time as time,DATE_TRUNC('month', block_time) AS month,hash,(gas_price * gas_used) / 1e18 as eth_paid_per_tx,block_number,indexFROMethereum.transactionsWHEREto = 0xfcc84F7b6d88d671C6a1841549c0b2E70110884f -- skale DKGORDER BYblock_number,index),txs_monthly AS (SELECTmonth,SUM(eth_paid_per_tx) as eth_spent,SUM(eth_paid_per_tx * price) as usd_spent,COUNT(hash) as tx_amountFROMtxsLEFT JOIN (SELECTminute,priceFROMprices.usdWHEREsymbol = 'WETH'AND blockchain = 'ethereum'GROUP BYminute,price) as prices ON date_trunc('minute', time) = minuteGROUP BYmonthORDER BYmonth),zero_values_month as (withdates as (SELECTsequence(date_trunc('month', cast('2021-04-01 00:00' as timestamp)),date_trunc('month', cast(now() as timestamp)),interval '1' month) as month)SELECTzero_values_month.month,0 as amountFROMdatesCROSS JOIN unnest (month) as zero_values_month (month)),