For a comprehensive step-by-step guide including setup instructions, see our Deploy a Smart Contract tutorial.
Network Configuration
| Network | RPC URL | Chain ID | Explorer |
|---|---|---|---|
| Mainnet | https://evm.mantrachain.io | 5888 | blockscout.mantrascan.io |
| Testnet (DuKong) | https://evm.dukong.mantrachain.io | 5887 | explorer.dukong.io |
Prerequisites
- A funded wallet with OM tokens for gas fees (Testnet Faucet)
- Your contract compiled and ready to deploy
- Network configuration set up (see Getting Started)
Quick Deploy Commands
Using Foundry
Using Hardhat
Using Remix
- Go to Remix IDE
- Compile your contract
- Select “Injected Provider” (MetaMask)
- Ensure MetaMask is connected to MANTRA Chain
- Deploy your contract
After Deployment
After deployment, verify your contract on the block explorer. See Verifying Contracts for details.Related Guides
- Deploy a Smart Contract - Complete tutorial with setup
- Using Foundry - Foundry-specific guide
- Using Hardhat - Hardhat-specific guide
- Verifying Contracts - Contract verification
- Using Precompiles - Access native chain features