Query editor
WITH parameters AS (SELECTDATE '2025-05-06' AS start_date),x402_addresses AS (SELECT DISTINCTaddress,CASEWHEN blockchain = 'polgyon' THEN 'polygon'ELSE blockchainEND AS chainFROM query_6054244),bucketed_transfers AS (SELECTt.amount_usd,CASEWHEN t.amount_usd < 0.001 THEN '< $0.001'WHEN t.amount_usd < 0.005 THEN '$0.001 - < $0.005'WHEN t.amount_usd < 0.01 THEN '$0.005 - < $0.01'WHEN t.amount_usd < 0.05 THEN '$0.01 - < $0.05'WHEN t.amount_usd < 0.10 THEN '$0.05 - < $0.10'WHEN t.amount_usd < 0.25 THEN '$0.10 - < $0.25'WHEN t.amount_usd < 0.50 THEN '$0.25 - < $0.50'WHEN t.amount_usd < 1.00 THEN '$0.50 - < $1'WHEN t.amount_usd < 5.00 THEN '$1 - < $5'WHEN t.amount_usd < 10.00 THEN '$5 - < $10'WHEN t.amount_usd < 100.00 THEN '$10 - < $100'WHEN t.amount_usd < 1000.00 THEN '$100 - < $1,000'ELSE '$1,000+'END AS payment_size_bucket,CASEWHEN t.amount_usd < 0.001 THEN 1WHEN t.amount_usd < 0.005 THEN 2WHEN t.amount_usd < 0.01 THEN 3WHEN t.amount_usd < 0.05 THEN 4WHEN t.amount_usd < 0.10 THEN 5WHEN t.amount_usd < 0.25 THEN 6WHEN t.amount_usd < 0.50 THEN 7WHEN t.amount_usd < 1.00 THEN 8WHEN t.amount_usd < 5.00 THEN 9WHEN t.amount_usd < 10.00 THEN 10WHEN t.amount_usd < 100.00 THEN 11WHEN t.amount_usd < 1000.00 THEN 12ELSE 13END AS bucket_orderFROM tokens.transfers tINNER JOIN x402_addresses xaON t.tx_from = xa.addressAND t.blockchain = xa.chainCROSS JOIN parameters pWHERE t.block_date >= p.start_date