Before You Begin
Before you can deploy applications, you will need an Ethereum wallet with BTC to pay for gas fees.Connect Your Wallet
Learn how to connect your wallet to Mezo
For advanced chain configuration and network parameters, see the Chains Configuration Guide.
Testnet Configuration
Network Details
| Parameter | Value |
|---|---|
| Network Name | Mezo Testnet |
| Chain ID | 31611 |
| Currency | BTC (18 decimals) |
| Block Explorer | explorer.test.mezo.org |
RPC Endpoints
| Protocol | URL |
|---|---|
| HTTPS | https://rpc.test.mezo.org |
| WSS | wss://rpc-ws.test.mezo.org |
Get Testnet BTC
To pay for gas fees on the Testnet, you will need Testnet BTC.Visit the Mezo Faucet
Obtain Testnet BTC from the official Mezo Faucet.
The faucet is protected by a CAPTCHA to prevent abuse.
Hardhat Configuration
Install Hardhat
If you are new to Hardhat, use the Hardhat Quick Start guide to learn how to install and initialize your project.
Foundry Configuration
Install Foundry
If you are new to Foundry, use the Foundry Getting Started guide to learn how to install and initialize your project.
Mainnet Configuration
Network Details
| Parameter | Value |
|---|---|
| Network Name | Mezo Mainnet |
| Chain ID | 31612 |
| Currency | BTC (18 decimals) |
| Block Explorer | explorer.mezo.org |
RPC Providers
For production deployments, it is recommended to use a dedicated RPC provider for higher rate limits and stability.
| Provider | HTTPS | WSS |
|---|---|---|
| Boar | https://rpc-http.mezo.boar.network | wss://rpc-ws.mezo.boar.network |
| Imperator | https://rpc_evm-mezo.imperator.co | wss://ws_evm-mezo.imperator.co |
| Validation Cloud | https://mainnet.mezo.public.validationcloud.io | wss://mainnet.mezo.public.validationcloud.io |
| dRPC NodeCloud | https://mezo.drpc.org | wss://mezo.drpc.org |
Hardhat Configuration
To configure Hardhat for Mezo Mainnet, modify yourhardhat.config.js (or .ts) file:
hardhat.config.js
Foundry Configuration
To configure a Foundry project for Mezo Mainnet, set the following in yourfoundry.toml:
foundry.toml
Multi-Network Configuration
For projects that need to support both Testnet and Mainnet, you can configure multiple networks:Next Steps
Deploy Contracts
Start deploying your smart contracts to Mezo using your configured environment
Mezo Passport
Integrate wallet support for both Bitcoin and EVM wallets
MUSD Integration
Integrate MUSD stablecoin into your dApp
dApp Requirements
Review requirements for featuring in Mezo Market