Query editor
-- noqa: TMP-- This query provides data related to rewards/payouts on a per order level-- for all auctions that had at least one winner.-- Parameters:-- : the chain for which we want to retrieve order data-- The output has the following columns:-- environment: varchar-- auction_id: bigint-- block_number: bigint-- order_uid: varbinary-- solver: varbinary-- quote_solver: varbinary-- tx_hash: varbinary-- surplus_fee: decimal(38, 0) | null (this was dropped since June 2025)-- protocol_fee: decimal(38, 0)-- protocol_volume_fee: decimal(38, 0)-- protocol_fee_token: varbinary-- protocol_fee_native_price: double-- quote_sell_amount: decimal(38, 0)-- quote_buy_amount: decimal(38, 0)-- quote_gas_cost: double-- quote_sell_token_price: double-- partner_fee: decimal(38, 0)-- partner_fee_recipient: varbinary-- protocol_fee_kind: varchar-- network_fee: decimal(38, 0) (this was added in June 2025)-- is_eligible_for_quote_reward: boolean (available from 22 Dec 2025, null before that; since-- the CIP-88 quote rewards (Oct 2026) it means the order is in scope of the quote-- competition rewards, not that the quote earned the flat reward)-- quote_budget_contribution: decimal(38, 0) (CIP-88, available from Oct 2026, null before-- that): the trade's contribution to the quote reward budget, in native atoms-- is_fast_path: boolean (available from Oct 2026, null before that): the trade was settled-- in a fast-path auction (the auction was created from a fast-path quote)-- DISCLAIMER: All entries with auction_id = -1000 are invalidwithpast_data_ethereum as (selectenvironment,auction_id,block_number,order_uid,solver,quote_solver,tx_hash,surplus_fee,protocol_fee,protocol_volume_fee,protocol_fee_token,protocol_fee_native_price,quote_sell_amount,quote_buy_amount,quote_gas_cost,quote_sell_token_price,partner_fee,partner_fee_recipient,protocol_fee_kind,network_fee,