Query editor
SELECTCOUNT(DISTINCT CASEWHEN block_time > CURRENT_TIMESTAMP - INTERVAL '7' dayTHEN "from"ELSE NULLEND) AS users_last_7_days, /* Counting the number of unique users in the last 7 days */SUM(CASEWHEN block_time > CURRENT_TIMESTAMP - INTERVAL '7' dayTHEN value / TRY_CAST(1e18 AS DOUBLE)ELSE 0END) AS TVB_last_7_days, /* Calculating the Total Value Bridged in the last 7 days */COUNT(DISTINCT "from") AS users_all_time, /* Counting the number of unique users of all time */SUM(value / TRY_CAST(1e18 AS DOUBLE)) AS TVB_all_time /* Calculating the Total Value Bridged of all time */FROM ethereum."transactions"WHERE("to" = 0x52ec2F3d7C5977A8E558C8D9C6000B615098E8fC /* Optimism Wrap Speed Bridge Contract */OR "to" = 0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1 /* Optimism Main Bridge Contract */)AND success = TRUEAND value > 0