Query editor
with base as (select"from", count (distinct block_hash) as transactions, count (distinct date(block_time)) as days_active, count (distinct "to") as interactionsfrom base.transactionswhere date(block_time) >= current_date - interval '30' dayand successgroup by 1),stats as (select1 as key_join, count (distinct "from") as all_users, count (distinct hash) as all_transactions-- , sum (cast (l1_fee + (gas_used * gas_price) as double) / 1e18) as all_transaction_feefrom base.transactionswhere date (block_time) >= current_date - interval '30' dayand success != null),active_on_base as (selectaddress, count (distinct "from") as active_users, count (distinct hash) as number_of_transactions-- , sum (transaction_fee) as transaction_feefrom (selectcoalesce (namespace, cast ("to" as varchar)) as address, "from", hash-- , cast (l1_fee + (gas_used * gas_price) as double) / 1e18 as transaction_feefrom base.transactions tleft join (selectaddress, namespacefrom base.contracts) fon "to" = addresswhere date(block_time) >= current_date - interval '30' dayand namespace not in ('base')and successunion -- adding in Mint.Fun data to correctly tagselect'minifun' as address, nft.to as "from", tx_hash as hash-- , cast (b.l1_fee + (b.gas_used * b.gas_price) as double) as transaction_feefrom nft.transfers nftjoin base.transactions bon b.hash = nft.tx_hashwherenft."from" = 0x0000000000000000000000000000000000000000and nft.block_time >= current_date - interval '30' day