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
wss://ws.alephzero-testnet.gelato.digital
wss://alephzero-sepolia.drpc.org
Mainnet
wss://ws.alephzero.raas.gelato.cloud
wss://alephzero.drpc.org
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:
Mainnet: https://evm-explorer.alephzero.org/
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:
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.
Thirdweb
Mainnet: https://thirdweb.com/aleph-zero-evm
Gnosis Safe/Profotire:
Goldsky: you'll need to use the chain slug
alephzero-testnet
for testnet, andalephzero-evm
for mainnet
Resources for SC development on EVM chains
Hardhat tutorial, currently the most popular Solidity framework
Foundry book, a faster alternative to Hardhat
OpenZeppelin Wizard, allowing you to construct basic tokens using a UI
Ethernaut, an educational game where you 'hack' smart contracts
Developing ZK-apps
Circom and snarkjs tutorial https://docs.circom.io/
Basic background on ZK for developers https://docs.circom.io/background/background/#zero-knowledge-proofs
Last updated