Query editor
with daily_stake as (selectdate_trunc('day', evt_block_time) as day,evt_tx_from,sum(value) / 1e18 as stake_valuefrom erc20_ethereum.evt_transferwhere contract_address = 0x000006c2A22ff4A44ff1f5d0F2ed65F781F55555and evt_tx_to = 0xE8Ae8eE8ffa57F6a79B6Cbe06BAFc0b05F3ffbf4and evt_block_time >= TIMESTAMP '2025-09-15'group by 1, 2),daily_stats as (selectday,count(distinct evt_tx_from) as staker_count, -- 当天新增质押地址数sum(stake_value) as total_stake_value, -- 当天总质押数量avg(stake_value) as avg_stake_value, -- 当天平均每个地址质押数量count(*) as stake_tx_count -- 当天质押地址交易次数(合并后算一次)from daily_stakegroup by 1)selectday,staker_count,total_stake_value,avg_stake_value,stake_tx_count,sum(total_stake_value) over(order by day) as cumulative_stake_value, -- 累计质押总量sum(staker_count) over(order by day) as cumulative_new_staker_count -- 累计新增质押地址数(注意:是每天新出现的地址累计)from daily_statsorder by day;