Query editor
with usdc_transfers as (selecttx_hash, block_number, block_time, amount_usdfrom tokens.transferswhere blockchain = 'base'and contract_address = 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913and amount_usd > 0and block_time >= timestamp '2025-05-01'and block_time < timestamp '2025-10-01'),x402_txs as (select hash, block_numberfrom base.transactionswhere to = 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913and bytearray_substring(data, 1, 4) = 0xe3ee160eand success = trueand block_time >= timestamp '2025-05-01'and block_time < timestamp '2025-10-01')selectdate_trunc('week', u.block_time) as week_start, count(*) as tx_count, avg(u.amount_usd) as mean_usd, approx_percentile(u.amount_usd, 0.50) as median_usd, approx_percentile(u.amount_usd, 0.90) as p90_usd, approx_percentile(u.amount_usd, 0.99) as p99_usdfrom usdc_transfers ujoin x402_txs xon u.tx_hash = x.hashand u.block_number = x.block_numbergroup by 1order by 1