Query editor
-- SOLANA and STELLAR only-- calculates number transactions, total volume, number wallets who transact using eur denominated stablecoinswith prev AS (select * from TABLE(previous.query.result(schema => descriptor(time TIMESTAMP(3),symbol VARCHAR,txs BIGINT,wallets BIGINT,-- destinations BIGINT,volume DOUBLE)))),checkpoint AS (select COALESCE(MAX(time), TIMESTAMP '2026-04-01') - INTERVAL '1' MONTH AS cutoffFROM prev)-- 3. Keep old data (before cutoff)-- select day as time, symbol, txs, wallets, destinations, volumeselect time as time, symbol, txs, wallets, volumefrom prevwhere time < (SELECT cutoff FROM checkpoint)UNION ALL-- recompute from cutoff onwardsselecttime,symbol,sum(txs) as txs,sum(wallets) as wallets,-- sum(destinations) as destinations,sum(volume) as volumefrom ( -- solana and stellarselectdate_trunc('month', block_time) as time,symbol,count(distinct tx_id) as txs,count(distinct from_owner) as wallets,-- count(distinct to_owner) as destinations,sum(amount_display) as volumefrom tokens_solana.transferswhere token_mint_address IN (select distinct contract_address from query_7529059 where chain IN ('Solana', 'Stellar'))-- WHERE token_mint_address IN (-- 'HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr',-- 'DghpMkatCiUsofbTmid3M3kAbDTPqDwKiYHnudXeGG52',-- 'C4Kkr9NZU3VbyedcgutU6LKmi6MKz81sx6gRmk5pX519')and block_time >= (select cutoff from checkpoint)and action NOT IN ('mint', 'burn')group by 1, 2)where time < date_trunc('month', now())group by 1, 2order by time