Query editor
SELECTSUM(375 + -- Base gas cost for every log(COALESCE(length(topic0), 0) + COALESCE(length(topic1), 0) + COALESCE(length(topic2), 0) + COALESCE(length(topic3), 0)) / 32 * 375 + -- 375 gas cost for every log topicCOALESCE(length(log.data), 0) * 8 -- Gas cost for the log data in gas units, without conversion) AS total_gas_costFROM ethereum.logs logJOIN ethereum.transactions tx ON log.tx_hash = tx.hash;