# AxiomREPL

Specify custom compute over the history of Ethereum in Javascript.

You can use AxiomREPL to write a custom query into Axiom and integrate it into your web frontend. These custom circuits can include data queries and arbitrary computation on top of these data queries. The circuit is proven in-browser and can then be sent on-chain to the Axiom V2 prover, which will aggregate the user-supplied compute proof with proofs of the data queries. Once the aggregated proof is posted on-chain, the results of the compute proof are passed to a user-specified callback function for consumption.

AxiomREPL has been tested and works as expected in Google Chrome and Safari. AxiomREPL currently does not work in Firefox

### Example

Here is an example to trustlessly prove the block number at which your account made its first transaction.

Circuit Input:

AxiomREPL code:

Replace the input `address`

with your own address and `claimedBlockNumber`

to the first block you made a transaction to prove your account age! Notice that if you supply the wrong `claimedBlockNumber`

, the circuit will fail run. See AxiomREPL Reference for complete documentation about the functions available in AxiomREPL.

Last updated