Prerequisites
- A funded wallet with OM tokens for gas fees
- Your contract compiled and ready to deploy
- Network configuration set up (see Getting Started)
Network Configuration
Testnet (DuKong)
- RPC URL:
https://evm.dukong.mantrachain.io - Chain ID:
5887 - Explorer: explorer.dukong.io
Mainnet
- RPC URL:
https://evm.mantrachain.io - Chain ID:
5888 - Explorer: blockscout.mantrascan.io
Using Hardhat
Deployment Script
Createscripts/deploy.js:
Deploy
Using Foundry
Deploy with Forge
Using Scripts
Createscript/Deploy.s.sol:
Using Remix
- Go to Remix IDE
- Compile your contract
- Go to Deploy & Run
- Select “Injected Provider” (MetaMask)
- Make sure MetaMask is connected to MANTRA Chain
- Deploy your contract
Verifying Contracts
After deployment, verify your contract on the block explorer. See Verifying Contracts for details.Next Steps
- Verify your contract
- Learn about using precompiles
- Explore EVM development