Query editor
-- DeepBook V3: latest up to 1000 successful direct-call PTBs PER disjoint action class,-- indexed in the current UTC date and previous six dates. Stratified cost sample, not activity shares.-- Package versions 1-6 verified against Sui's official Contract Information page, 2026-09-28.-- One row per whole PTB before gas aggregation. Helper/proof calls do not become transaction types.-- Calls made only inside router/custom Move packages are not included in this direct-call sample.-- All amounts are MIST. Net@100/10 are fixed-work estimates: computation / actual bid * new bid-- plus unchanged storage cost minus unchanged rebate. These are not execution simulations.-- Fees paid in DEEP or trading assets are excluded. Gross storage must still be funded before rebates;-- required gross gas falls by the modeled computation reduction, not by the full rebate-adjusted net.-- Exact medians are computed AFTER transaction-level net estimates; component medians need not add up.WITH direct_calls AS (SELECT date, transaction_digest, cmd_idx, module, "function",concat(module, '::', "function") qualified_function,CASEWHEN module = 'pool' AND "function" IN ('place_limit_order','place_post_only_limit_order') THEN 'Limit order'WHEN module = 'pool' AND "function" = 'place_market_order' THEN 'Market order'WHEN module = 'pool' AND "function" IN ('swap_exact_base_for_quote','swap_exact_quote_for_base','swap_exact_quantity','swap_exact_base_for_quote_with_manager','swap_exact_quote_for_base_with_manager','swap_exact_quantity_with_manager') THEN 'Swap'WHEN module = 'pool' AND "function" IN ('cancel_order','cancel_orders','cancel_all_orders') THEN 'Cancel orders'WHEN module = 'pool' AND "function" = 'modify_order' THEN 'Modify order'WHEN module = 'balance_manager' AND "function" IN ('new','new_with_custom_owner','new_with_custom_owner_caps') THEN 'Create account'WHEN module = 'balance_manager' AND "function" IN ('deposit','deposit_with_cap') THEN 'Deposit'WHEN module = 'balance_manager' AND "function" IN ('withdraw','withdraw_with_cap','withdraw_all') THEN 'Withdraw'WHEN module = 'pool' AND "function" IN ('withdraw_settled_amounts','withdraw_settled_amounts_permissionless') THEN 'Settle funds'WHEN module = 'pool' AND "function" = 'claim_rebates' THEN 'Claim rebates'ELSE NULLEND actionFROM sui.move_callWHERE date >= current_date - INTERVAL '6' DAY AND date <= current_dateAND package IN (0x337f4f4f6567fcd778d5454f27c16c70e2f274cc6377ea6249ddf491482ef497,0x2d93777cc8b67c064b495e8606f2f8f5fd578450347bbe7b36e0bc03963c1c40,0x00c1a56ec8c4c623a848b2ed2f03d23a25d17570b670c22106f336eb933785cc,0xb29d83c26cdd2a64959263abbcfc4a6937f0c9fccaf98580ca56faded65be244,0xcaf6ba059d539a97646d47f0b9ddf843e138d215e2a12ca1f4585d386f7aec3a,0x2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809)GROUP BY 1,2,3,4,5), call_sets AS (SELECT date, transaction_digest, count(*) deepbook_call_count,array_sort(array_distinct(filter(array_agg(action), x -> x IS NOT NULL))) actions,array_sort(array_distinct(array_agg(qualified_function))) functionsFROM direct_calls GROUP BY 1,2), matched AS (SELECT c.*, t.timestamp_ms, t.checkpoint, t.transaction_position,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.gas_price AS double) gas_price_mist,cast(t.gas_budget AS double) gas_budget_mist,cast(t.move_calls AS bigint) total_move_calls,cast(t.transaction_count AS bigint) command_countFROM call_sets cJOIN sui.transactions t ON 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 = false), priced AS (SELECT *,computation_mist + storage_mist - rebate_mist observed_net_mist,