Query editor
WITH privy AS (SELECTaccountAddress AS walletFROM agw_abstract.accountfactory_evt_agwaccountdeployed)selectday,wallets,usdc,usd,sum(usdc) over (order by day) as total_usdc,sum(usd) over (order by day) as total_usd,transfers,sum(transfers) over (order by day) as total_transfersfrom (SELECTdate_trunc('week', evt_block_date) AS day,count(distinct "from") as wallets,sum(value/1e6) as usdc,sum(value/1e6 * price) as usd,count(*) as transfersFROM erc20_abstract.evt_transfer tLEFT JOIN privy p1 ON "from" = p1.walletleft join(selecttimestamp as day,avg(price) as pricefrom prices.daywhere blockchain = 'ethereum'and symbol = 'USDC'and contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48and timestamp >= date '2025-01-16'group by 1) pon date_trunc('day', t.evt_block_time) = p.day-- LEFT JOIN privy p2 ON "to" = p2.walletWHERE contract_address = 0x84a71ccd554cc1b02749b35d22f684cc8ec987e1AND evt_block_date >= DATE '2025-01-16'and p1.wallet is not null-- and p2.wallet is not nullgroup by 1)order by 1 desc