Query editor
-- BeInCrypto 100 Live Index · D1 · #6 Stablecoin Issuer · usage: transfer volume and senders per coin per chain (Solana)-- Parameters (text, UTC dates 'YYYY-MM-DD'): start_day = first day included, end_day = first day NOT included.-- Daily figures: start_day = yesterday, end_day = today.-- For the 30-day measure run start_day = day minus 29, end_day = day plus 1: the row with day NULL is the whole-window total-- (distinct senders over the window; they cannot be added up from daily rows).-- Volume = sum of transfer amounts in the coin's own units (raw integer as text; divide by 10^decimals, given in the decimals column).-- Only action = 'transfer' (mints and burns excluded); sender and receiver are token owners, not token accounts. Non-exchange = neither sender nor receiver is in Dune's cex.addresses for that chain.-- If a chain has no cex.addresses rows, non-exchange equals raw (coverage convention, not evidence of no exchange use).-- Contract list = BIC100 pilot 1 (25 coins, 145 coin-chain contracts, CoinGecko verified lists; U on Tron set to 18 decimals by contract read).-- Built from the pilot 1 templates (16 Sep to 15 Oct 2026). Same table and filters as pilot 1; all coins in one query.-- It must match pilot 1 on a test day before use. Not run yet.WITH tok(mint, issuer, coin, decimals) AS (VALUES('HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr', 'Circle', 'EURC', 6),('9zNQRsGLjNKwCUU5Gq5LR8beUCPzQMVMqKAi3SSZh54u', 'First Digital', 'FDUSD', 6),('GzX1ireZDU865FiMaKrdVB1H6AE8LAqWYCg6chrMrfBw', 'Frax', 'FRXUSD', 9),('2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo', 'PayPal (issued by Paxos)', 'PYUSD', 6),('APhcqtzE73es3KAGiVksZFMLGwJDiAey5qZKUrQHEHfS', 'SoFi', 'SoFiUSD', 6),('USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB', 'World Liberty Financial', 'USD1', 6),('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', 'Circle', 'USDC', 6),('2u1tszSeqZ3qBWF3uNGPFc8TzMk2tdiwknnRMWGWjGWH', 'Paxos', 'USDG', 6),('72puLt71H93Z9CzHuBRTwFpL4TG3WZUhnoCC7p8gxigu', 'OSL Group with Anchorage Digital', 'USDGO', 6),('USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA', 'Sky', 'USDS', 6),('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', 'Tether', 'USDT', 6),('DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT', 'Ethena', 'USDe', 9)),t AS (SELECT 'solana' AS chain, tok.issuer, tok.coin, tok.decimals, x.block_date AS day, x.from_owner AS sender, x.to_owner AS receiver, x.amount AS amount_rawFROM tokens_solana.transfers xJOIN tok ON x.token_mint_address = tok.mintWHERE x.block_date >= DATE '{{start_day}}' AND x.block_date < DATE '{{end_day}}'AND x.token_mint_address IN ('HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr', '9zNQRsGLjNKwCUU5Gq5LR8beUCPzQMVMqKAi3SSZh54u', 'GzX1ireZDU865FiMaKrdVB1H6AE8LAqWYCg6chrMrfBw', '2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo', 'APhcqtzE73es3KAGiVksZFMLGwJDiAey5qZKUrQHEHfS', 'USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB', 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', '2u1tszSeqZ3qBWF3uNGPFc8TzMk2tdiwknnRMWGWjGWH', '72puLt71H93Z9CzHuBRTwFpL4TG3WZUhnoCC7p8gxigu', 'USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA', 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', 'DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT')AND x.action = 'transfer'),lab AS (SELECT DISTINCT 'solana' AS blockchain, from_utf8(address) AS addr FROM cex.addresses WHERE blockchain = 'solana')SELECT t.chain, t.issuer, t.coin, t.decimals, t.day,cast(sum(t.amount_raw) AS varchar) AS raw_volume_raw,cast(sum(IF(l1.addr IS NULL AND l2.addr IS NULL AND t.sender IS NOT NULL AND t.receiver IS NOT NULL, t.amount_raw, cast(0 AS uint256))) AS varchar) AS nonexchange_volume_raw,count(DISTINCT t.sender) AS distinct_senders,count(DISTINCT IF(l1.addr IS NULL AND l2.addr IS NULL AND t.sender IS NOT NULL AND t.receiver IS NOT NULL, t.sender, NULL)) AS distinct_nonexchange_senders,count(*) AS transfer_records,count_if(t.sender IS NULL OR t.receiver IS NULL) AS missing_owner_recordsFROM tLEFT JOIN lab l1 ON l1.blockchain = t.chain AND t.sender = l1.addrLEFT JOIN lab l2 ON l2.blockchain = t.chain AND t.receiver = l2.addrGROUP BY GROUPING SETS ((t.chain, t.issuer, t.coin, t.decimals, t.day), (t.chain, t.issuer, t.coin, t.decimals))ORDER BY t.coin, t.chain, t.day NULLS LAST