Query editor
withaccounts as (selectblockchain,block_time,tx_hash,substring(topic2 from 13 for 20) as account,substring(data from 13 for 20) as factory,substring(data from 45 for 20) as paymasterfrom evms.logswhere topic0 = 0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d),zd as (select blockchain, accountfrom accountswhere factory IN (-- v1-- 0xaee9762ce625e0a8f7b184670fb57c37bfe1d0f1,-- 0x4e4946298614fc299b50c947289f4ad0572cb9ce,-- 0x19b03a419124b77a7659a0fdab7903c6f40183e5,-- 0x5de4839a76cf55d0c90e2061ef4386d962e15ae3,-- 0x33ddf684dcc6937ffe59d8405aa80c41fb518c5c,0xd703aae79538628d27099b8c4f621be4ccd142d5, -- found in documentation as meta factory-- v20x6723b44Abeec4E71eBE3232BD5B455805baDD22f,0xaac5D4240AF87249B3f71BC8E4A2cae074A3E419,0x7a1dBAB750f12a90EB1B60D2Ae3aD17D4D81EfFe,0x2577507b78c2008Ff367261CB6285d44ba5eF2E9,0x5de4839a76cf55d0c90e2061ef4386d962E15ae3,0x4E4946298614FC299B50c947289F4aD0572CB9ce))select *,sum(amt_usd) over (partition by blockchain order by block_month) as total_amt_usd_by_bk,sum(amt_usd) over (order by block_month) as total_amt_usdfrom (selectz.blockchain,block_month,sum(amount_usd) as amt_usdfrom stablecoins_evm.transfers tjoin zd zon "from" = accountand t.blockchain = z.blockchainwhere t.block_month >= date '2025-07-01'group by 1,2)order by 2 desc, 1