Query editor
-- Tonnel: -- UQBZs1e2h5CwmxQxmAJLGNqEPcQ9iU3BCDj0NSzbwTiGa3hR -- 0:59b357b68790b09b143198024b18da843dc43d894dc10838f4352cdbc138866b-- Portal: -- UQAE88HHlayJBeMXNDYrFJh1q5UirlODq3q7LhDaXai6gtwi -- 0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82with raw as (selectblock_date, count(distinct case when destination = upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82') then source else destination end) as "Unique Users", sum(value / 1e9) as "Daily Deposit Vol(TON)"from ton.messageswhere block_date >= cast('2025-05-01' as timestamp)and direction = 'in'and (destination = upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82')or source = upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82'))and source is not nulland destination is not nulland (destination != upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82')or source != upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82'))group by1-- order by-- 1 desc)select *from rawwhere block_date >= date_trunc('day', NOW() - interval '90' day)