Query editor
with usdc_transfers as (selecttx_hash, block_number, amount_usdfrom tokens.transferswhere blockchain = 'base'and contract_address = 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913and amount_usd > 0and block_time >= now() - interval '90' dayand block_time < date_trunc('week', now())),x402_txs as (select hash, block_numberfrom base.transactionswhere to = 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913and bytearray_substring(data, 1, 4) = 0xe3ee160eand success = trueand block_time >= now() - interval '90' day),bucketed as (selectcasewhen u.amount_usd < 0.001 then '1 · under $0.001'when u.amount_usd < 0.01 then '2 · $0.001 - $0.01'when u.amount_usd < 0.10 then '3 · $0.01 - $0.10'when u.amount_usd < 1 then '4 · $0.10 - $1'when u.amount_usd < 10 then '5 · $1 - $10'when u.amount_usd < 100 then '6 · $10 - $100'else '7 · $100+'end as value_bucket, u.amount_usdfrom usdc_transfers ujoin x402_txs xon u.tx_hash = x.hashand u.block_number = x.block_number)selectvalue_bucket, 100.0 * count(*) / sum(count(*)) over () as pct_of_transactions, 100.0 * sum(amount_usd) / sum(sum(amount_usd)) over () as pct_of_volume, count(*) as tx_count, sum(amount_usd) as volume_usdfrom bucketedgroup by value_bucketorder by value_bucket