# Aztec

### Overview

Aztec is a privacy-first L2 that posts batches of transactions to Ethereum with PLONK proofs. The Aztec Dune query can be found [here](https://dune.com/queries/3916310).

### Query Structure

The query filters successful traces sent to the Aztec's [RollupProcessor](https://etherscan.io/address/0x737901bea3eeb88459df9ef1be8ff3ae1b42a2ba), [RollupProcessorV2](https://etherscan.io/address/0x8430be7b8fd28cc58ea70a25c9c7a624f26f5d09) and [RollupProcessorV3](https://etherscan.io/address/0xff1f2b4adb9df6fc8eafecdcbf96a2b351680455) contracts that call the processRollup function.

### Calculations

* The proof volume is the sum of successful processRollup function calls
* The cost is calculated using the following formula:&#x20;
  * $$\text{cost} = \sum\_{\text{traces}} \left( \text{gas\_used} \times \text{gas\_price} \times \text{eth\_price} \right)$$
  * Where:
    * $$\text{gas\_used}$$ is the amount of gas consumed by a trace in one of the verifiers
    * $$\text{gas\_price}$$ is the price of gas on the day of the transaction
    * $$\text{eth\_price}$$ is the average price of ETH in USD on the day of the transaction
