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 timeFROMbob.tracesWHEREto = 0x4200000000000000000000000000000000000010---bob Official Bridge Contract