Query editor
-- Total earnings by all provers (all-time)WITH total_proofs AS (SELECTCOUNT(*) as total_proofs_count,COUNT(DISTINCT prover) as unique_proversFROM boundless_base.BoundlessMarket_evt_RequestFulfilled),total_eth_earnings AS (SELECTSUM(value) / 1e18 as total_eth_earned,COUNT(*) as total_withdrawals,COUNT(DISTINCT account) as provers_who_withdrewFROM boundless_base.BoundlessMarket_evt_Withdrawal),total_zkc_earnings AS (SELECTSUM(value) / 1e18 as total_zkc_earned,COUNT(DISTINCT "to") as provers_who_earned_zkcFROM erc20_base.evt_TransferWHERE contract_address = 0xaa61bb7777bd01b684347961918f1e07fbbce7cfAND "from" = 0xfd152dadc5183870710fe54f939eae3ab9f0fe82AND "to" != 0x000000000000000000000000000000000000dead)SELECTp.total_proofs_count,p.unique_provers,COALESCE(e.total_eth_earned, 0) as total_eth_earned,COALESCE(z.total_zkc_earned, 0) as total_zkc_earned,ROUND(COALESCE(e.total_eth_earned, 0) / NULLIF(p.total_proofs_count, 0), 6) as avg_eth_per_proof,COALESCE(e.total_withdrawals, 0) as total_withdrawals,COALESCE(e.provers_who_withdrew, 0) as provers_who_withdrew,COALESCE(z.provers_who_earned_zkc, 0) as provers_who_earned_zkcFROM total_proofs pCROSS JOIN total_eth_earnings eCROSS JOIN total_zkc_earnings z