Query editor
1SELECT 2 "from" AS wallet_address,3 SUM(value - (1e18)) AS net_profit4FROM 5 sonic.transactions6WHERE 7 block_date >= CURRENT_DATE - INTERVAL '7' day8 AND success = TRUE9GROUP BY 10 "from"11ORDER BY 12 net_profit DESC13LIMIT 50;
SELECT
"from" AS wallet_address,
SUM(value - (1e18)) AS net_profit
FROM
sonic.transactions
WHERE
block_date >= CURRENT_DATE - INTERVAL '7' day
AND success = TRUE
GROUP BY
"from"
ORDER BY
net_profit DESC
LIMIT 50;