Query editor
SELECTSUM(gas_used * gas_price) / 1e18 AS total_ape_spent_on_feesFROM (SELECT gas_used, gas_priceFROM apechain.transactionsWHERE "to" = 0x2d342ef1c5dea66851a3e604c9e663836405cf54 AND success = TRUEUNION ALLSELECT tr.gas_used, tx.gas_priceFROM apechain.traces trJOIN apechain.transactions tx ON tx.hash = tr.tx_hashWHERE tr.address = 0x2d342ef1c5dea66851a3e604c9e663836405cf54 AND tr.success = TRUE) AS combined_fees;