Starknet

Overview

Starknet is a ZK rollup that posts transaction data to Ethereum using a verifier contract to validate STARK proofs. The current verifier is a set of multiple smart contracts, which is detailed in the Starknet documentationarrow-up-right. The Starknet Dune query can be found herearrow-up-right.

Query Structure

The query filters transactions sent to the StarkNet SHARP Verifier contract addressarrow-up-right that were successful and involved the verifyProofAndRegister function.

Calculations

  • The proof volume is the sum of verifyProofAndRegister function calls

  • The cost is calculated using the following formula:

    • cost=txns(gas_used×gas_price×eth_price) \text{cost} = \sum_{\text{txns}} \left( \text{gas\_used} \times \text{gas\_price} \times \text{eth\_price} \right)

    • Where:

      • gas_used=6000000×0.7\text{gas\_used} = 6000000 \times 0.7

      • gas_price\text{gas\_price} is the price of gas on the day of the transaction

      • eth_price\text{eth\_price} is the average price of ETH in USD on the day of the transaction