Query editor
-- Latest up to 1000 successful direct-call PTBs PER ACTION TYPE, latest 7 UTC dates (including today).-- Stratified sample: row counts do not measure the real activity mix; no combined median.-- Package verified via https://aftermath.finance/api/addresses on 2026-09-28.-- Whole-transaction gas; helper calls ignored for type labels, mixed actions are explicit.-- Fixed-work scenarios normalize computation by the observed bid, hold storage/rebate fixed.-- These are price scenarios, not re-executions or predictions of future storage charges.WITH call_groups AS (SELECT date, transaction_digest,array_sort(array_distinct(array_agg(module || '::' || "function"))) perps_calls,max(CASE WHEN "function" = 'place_market_order' THEN 1 ELSE 0 END) market_order,max(CASE WHEN "function" = 'place_limit_order' THEN 1 ELSE 0 END) limit_order,max(CASE WHEN "function" IN ('cancel_orders','try_cancel_orders') THEN 1 ELSE 0 END) cancel_order,max(CASE WHEN "function" = 'update_funding' THEN 1 ELSE 0 END) funding,max(CASE WHEN "function" = 'deposit_collateral' THEN 1 ELSE 0 END) deposit,max(CASE WHEN "function" IN ('create_account','create_and_share_account') THEN 1 ELSE 0 END) create_accountFROM sui.move_callWHERE date >= current_date - INTERVAL '6' DAY AND date <= current_dateAND package IN (0x3ec740df8428aa9c93aaef7f8cc1542ac3194fd014826b51bfe245346d64efc7, 0xe54757433d663835bda85cfc89c6c44bc8d952e941affa5ae57bba0baa226c1b)GROUP BY 1, 2), latest AS (SELECT t.transaction_digest, t.timestamp_ms, t.gas_price,cast(t.computation_cost AS double) computation_mist,cast(t.storage_cost AS double) storage_mist,cast(t.storage_rebate AS double) rebate_mist,cast(t.total_gas_cost AS double) recorded_net_mist,cast(t.transaction_count AS double) commands,t.is_sponsored_tx, c.perps_calls, c.market_order, c.limit_order, c.cancel_order, c.funding, c.deposit, c.create_accountFROM call_groups c JOIN sui.transactions tON t.date = c.date AND t.transaction_digest = c.transaction_digestWHERE t.date >= current_date - INTERVAL '6' DAY AND t.date <= current_dateAND t.execution_success = true AND t.is_system_txn = falseAND t.gas_price > 0 AND t.computation_cost IS NOT NULLAND t.storage_cost IS NOT NULL AND t.storage_rebate IS NOT NULL), priced AS (SELECT *,CASEWHEN deposit=1 AND contains(perps_calls, 'account::withdraw_collateral') THEN 'Mixed actions'WHEN market_order + limit_order + cancel_order + funding + deposit + create_account > 1THEN CASE WHEN limit_order=1 AND cancel_order=1 AND market_order+funding+deposit+create_account=0THEN 'Cancel + limit orders' ELSE 'Mixed actions' ENDWHEN market_order=1 THEN 'Market order'WHEN limit_order=1 THEN 'Limit order'WHEN cancel_order=1 THEN 'Cancel orders'WHEN funding=1 THEN 'Funding update'WHEN deposit=1 THEN 'Deposit collateral'WHEN create_account=1 THEN 'Create account'ELSE 'Other Perps calls'END transaction_type,computation_mist + storage_mist - rebate_mist observed_net_mist,computation_mist / cast(gas_price AS double) * 100.0 compute_100_mist,computation_mist / cast(gas_price AS double) * 100.0 + storage_mist - rebate_mist net_100_mist,computation_mist / cast(gas_price AS double) * 10.0 + storage_mist - rebate_mist net_10_mistFROM latest), ranked AS (SELECT *, row_number() OVER (PARTITION BY transaction_type ORDER BY timestamp_ms DESC, transaction_digest) recency_rankFROM priced), sampled AS (SELECT * FROM ranked WHERE recency_rank <= 1000), grouped AS (SELECT transaction_type,