# Axiom

### Overview

Axiom is a coprocessor that allows smart contracts to trustlessly compute over the entire history of Ethereum. Axiom uses ZK proofs to trustlessly read from block headers, states, transactions, and receipts in any historical Ethereum block. The Axiom Dune query can be found [here](https://dune.com/queries/4087578).

### Query Structure

The query transactions sent to the AxiomV2Query proxy [contract](https://etherscan.io/address/0x83c8c0B395850bA55c830451Cfaca4F2A667a983) that invoke fulfillQuery. The traces in the [AxiomV2HeaderVerifier](https://etherscan.io/address/0xd9C75fD200C3bcD23D361aF00c74Db4597f7D583) and [AxiomV2QueryVerifier](https://etherscan.io/address/0xB4F8aE14b37A11aeD8dDc2Bc1123C804a51a2b1F) are used for calculating gas spent on verification.

### Calculations

* The proof volume is the sum of fulfillQuery function calls
* The cost is calculated using the following formula:&#x20;
  * $$\text{cost} = \sum\_{\text{txns}} \left( \text{gas\_used} \times \text{gas\_price} \times \text{eth\_price} \right)$$
  * Where:
    * $$\text{gas\_used}$$ is the amount of gas consumed by the traces in AxiomV2HeaderVerifier and AxiomV2QueryVerifier
    * $$\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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://standard-crypto.gitbook.io/zkstats/projects/axiom.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
