ZKstats
  • Methodology
  • Projects
    • Axiom
    • Aztec
    • dYdX
    • Linea
    • Loopring
    • Polygon zkEVM
    • Railgun
    • RiscZero
    • Scroll
    • Starknet
    • Succinct
    • Tornado Cash
    • World
    • ZKsync
Powered by GitBook
On this page
  • Overview
  • Query Structure
  • Calculations
  1. Projects

Starknet

PreviousScrollNextSuccinct

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 . The Starknet Dune query can be found .

Query Structure

The query filters transactions sent to the StarkNet SHARP Verifier contract 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) cost=∑txns​(gas_used×gas_price×eth_price)

    • Where:

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

        • The is fixed around 6M

        • 0.7 represents Starknet's share in the shared proof

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

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

Starknet documentation
here
address
gas cost of verification