Query editor
WITH daily_burns AS (SELECTcall_block_date,SUM(COALESCE(JSON_VALUE(args, 'lax $.BurnDelegatedDataCreditsArgsV0.amount' RETURNING bigint),0)) AS dc_burnedFROMhelium_solana.data_credits_call_burnDelegatedDataCreditsV0WHEREcall_block_date >= DATE '2025-01-01'AND call_block_date < CURRENT_DATEAND account_dcBurnAuthority != 'iotdbYfWqPiDa5MruziFHxBsjHamKuEnMhkPFoW4mKE'GROUP BY1),daily_with_rate AS (SELECTcall_block_date,dc_burned,-- DC per GB implied by the carrier payer rate in effect on this date.-- $0.50/GB through June 3, 2026; ~$0.10/GB from June 4, 2026 onward.-- 1 DC = $0.00001, so DC per GB = rate_per_gb / 0.00001.CASEWHEN call_block_date < DATE '2026-06-04' THEN 50000.0ELSE 10000.0END AS dc_per_gbFROMdaily_burns)SELECTDATE_ADD('day', -1, DATE_TRUNC('month', DATE_ADD('month', 1, call_block_date))) AS month_end,SUM(dc_burned) AS dc_burned,SUM(dc_burned / dc_per_gb) AS implied_gb,SUM(dc_burned / dc_per_gb) / 1000.0 AS implied_tbFROMdaily_with_rateGROUP BY1ORDER BYmonth_end;