Development on EVM-layer

Details on Aleph Zero EVM layer

General information

If you are a developer familiar with the EVM ecosystem, you will feel right at home: developing on Aleph Zero EVM will allow you to reuse all of the practices you are used to, including available tooling and integrations.

Importantly, even though the gas token of the network is AZERO, from a developer's standpoint it's identical to using ETH on other EVM chains: all of the methods work like you'd expect them to (including transfers, checking balances, payable functions, gas estimations etc.)

Below you'll find a quick rundown of all information required to start developing dApps and solutions on the Aleph Zero EVM chain.

RPC Endpoints

For programmatic access to Aleph Zero EVM you can use one of the following RPC endpoints:

Testnet

Mainnet

Faucet

A PoW faucet for the testnet is available under the link https://drpc.org/faucet/alephzero -- if you find yourself in the need for more tokens than the faucet is able to provide, contact us on discord.

Block Explorer

The Blockscout explorer is available:

ChainId

  • Testnet: 2039

  • Mainnet: 41455

Wrapped native token (wAZERO)

For the implementation deployed by the Aleph Zero Team, including ABI and bytecode, please see the wAZERO repo. The contract addresses are:

  • Testnet: 0xcC1141eEd15EB519b08cA38A2Ee75AB8025F0DA9

  • Mainnet: 0xb7Da55D7040ef9C887e20374D76A88F93A59119E

This is a Solidity implementation deployed on the EVM L2, not to be confused with the ink! implementation deployed on the Aleph Zero Layer 1 chain.

Other Details

For other technical details of the Aleph Zero EVM testnet we refer to

Contract verification

In order to verify contracts, you can use Blockscout's API with Hardhat or Foundry, or verify them directly on the Blockscout page. If you're using Hardhat or Foundry, it's important to set:

  • the verifier url to https://evm-explorer.alephzero.org/api (for Mainnet)

  • https://evm-explorer-testnet.alephzero.org/api (for Testnet)

  • the verifier to blockscout

For example, if you'd like to verify your contract on the Aleph Zero EVM Testnet using Foundry, here are the params you'd pass to the verify-contract command:

--chain-id 2039 --verifier-url https://evm-explorer-testnet.alephzero.org/api --verifier blockscout

You don't need an API key for verification using Hardhat or Foundry. In Hardhat, you can set the key to any string.

Available integrations

This list will keep growing for a few months since the launch. If you don't see a tool you'd like to use, please reach out to us on discord.

Resources for SC development on EVM chains

  1. Hardhat tutorial, currently the most popular Solidity framework

  2. Foundry book, a faster alternative to Hardhat

  3. OpenZeppelin Wizard, allowing you to construct basic tokens using a UI

  4. Ethernaut, an educational game where you 'hack' smart contracts

Developing ZK-apps

  1. Circom and snarkjs tutorial https://docs.circom.io/

Last updated