Query editor
-- Tonnel: UQBZs1e2h5CwmxQxmAJLGNqEPcQ9iU3BCDj0NSzbwTiGa3hR -- 0:59b357b68790b09b143198024b18da843dc43d894dc10838f4352cdbc138866b-- Portal: UQAE88HHlayJBeMXNDYrFJh1q5UirlODq3q7LhDaXai6gtwi -- 0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82-- Telegram Gifter: UQAVgTYjmtsV3VnfkMZB-e_TEs_rhmTyGPTD5fzp2V5sB1R_ `0:158136239adb15dd59df90c641f9efd312cfeb8664f218f4c3e5fce9d95e6c07`------ select block_date,-- case when destination = upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82') then 'Portals'-- when destination = upper('0:59b357b68790b09b143198024b18da843dc43d894dc10838f4352cdbc138866b') then 'Tonnels' else 'UNKW' end as name-- , sum(value) / POW(10, 9) as ton_value_deposit-- , count(*) deposit_txs-- , count(distinct comment) unique_deposit-- from ton.messages-- where block_date >= date_trunc('day', NOW() - interval '2' month)-- and direction = 'in'-- and (destination = upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82') or destination = upper('0:59b357b68790b09b143198024b18da843dc43d894dc10838f4352cdbc138866b') )-- group by 1, 2-- order by 1 desc;with tonnel (select block_date,source,valuefrom ton.messageswhere block_date >= date_trunc('day', NOW() - interval '2' month)and direction = 'in'and destination = upper('0:59b357b68790b09b143198024b18da843dc43d894dc10838f4352cdbc138866b')), portals (select block_date,source,valuefrom ton.messageswhere block_date >= date_trunc('day', NOW() - interval '2' month)and direction = 'in'and destination = upper('0:04f3c1c795ac8905e31734362b149875ab9522ae5383ab7abb2e10da5da8ba82')), raw (select *from tonnel aunion allselect *from portals b)select block_date,count(distinct )from raw