Query editor
SELECTCOUNT(DISTINCT CASE WHEN block_time > CURRENT_TIMESTAMP - INTERVAL '7' day THEN "from" ELSE NULL END) AS users_last_7_days, -- Counting the number of unique users in the last 7 daysSUM(CASE WHEN block_time > CURRENT_TIMESTAMP - INTERVAL '7' day THEN value / CAST(1e18 AS DOUBLE) ELSE 0 END) AS TVB_last_7_days, -- Calculating the Total Value Bridged in the last 7 daysCOUNT(DISTINCT "from") AS users_all_time, -- Counting the number of unique users of all timeSUM(value / CAST(1e18 AS DOUBLE)) AS TVB_all_time -- Calculating the Total Value Bridged of all timeFROMethereum."transactions"WHERE"to" IN (0x49048044D57e1C92A77f79988d21Fa8fAF74E97e, -- 原地址 Base: Base Bridge Contract0x3154Cf16ccdb4C6d922629664174b904d80F2C35 -- 新地址 (Base: Base Bridge))AND success = TRUEAND value > 0