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" = 0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419 /* StarkNet Offical Bridge */AND value > 0 /* Ensuring it's a deposit, not a withdraw */AND success = TRUE