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
RPC Endpoints
Get Testnet BTC
To pay for gas fees on the Testnet, you will need Testnet BTC.1
Visit the Mezo Faucet
Obtain Testnet BTC from the official Mezo Faucet.
The faucet is protected by a CAPTCHA to prevent abuse.
2
Setup Your Wallet
Ensure you have a browser wallet installed that supports Ethereum (EVM), such as MetaMask.
Hardhat Configuration
1
Install Hardhat
If you are new to Hardhat, use the Hardhat Quick Start guide to learn how to install and initialize your project.
2
Configure Network
To configure Hardhat for Mezo Testnet, modify your
hardhat.config.js (or .ts) file:hardhat.config.js
Foundry Configuration
1
Install Foundry
If you are new to Foundry, use the Foundry Getting Started guide to learn how to install and initialize your project.
2
Configure Network
To configure a Foundry project for Mezo Testnet, set the following in your
foundry.toml:foundry.toml
Mainnet Configuration
Network Details
RPC Providers
For production deployments, it is recommended to use a dedicated RPC provider for higher rate limits and stability.
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