Query editor
-- Gross 24h cirBTC transfers across Ethereum and Arc, excluding mints/burns.with btc_price as (selectAVG(price) as btc_pricefrom prices."usd"where blockchain = 'ethereum'and contract_address = 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599and minute >= NOW() - INTERVAL '24' HOUR), chain_volume as (selectblockchain, SUM(amount) as transfer_volume_cirbtcfrom tokens.transferswhere block_date >= CAST(NOW() - INTERVAL '24' HOUR as DATE)and block_time >= NOW() - INTERVAL '24' HOURand ((blockchain = 'ethereum'and contract_address = 0x72dfb2e44f59c5ad2bafe84314e5b99a7cd5075e)or (blockchain = 'arc'and contract_address = 0x171a4217b86a807a64eb94757db6849fb4bdbaa0))and "from" <> 0x0000000000000000000000000000000000000000and "to" <> 0x0000000000000000000000000000000000000000group byblockchain), transfer_volume as (selectCOALESCE(SUM(transfer_volume_cirbtc), 0) as transfer_volume_cirbtc, COALESCE(SUM(casewhen blockchain = 'ethereum'then transfer_volume_cirbtcelse0end), 0) as ethereum_transfer_volume_cirbtc, COALESCE(SUM(casewhen blockchain = 'arc'then transfer_volume_cirbtcelse0end), 0) as arc_transfer_volume_cirbtcfrom chain_volume)select