Skip to main content
For a comprehensive step-by-step guide including setup instructions, see our Deploy a Smart Contract tutorial.
Deploy your EVM smart contracts to MANTRA Chain using standard EVM deployment tools.

Network Configuration

NetworkRPC URLChain IDExplorer
Mainnethttps://evm.mantrachain.io5888blockscout.mantrascan.io
Testnet (DuKong)https://evm.dukong.mantrachain.io5887explorer.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

forge create src/MyContract.sol:MyContract \
  --rpc-url https://evm.dukong.mantrachain.io \
  --private-key $PRIVATE_KEY \
  --chain-id 5887

Using Hardhat

npx hardhat run scripts/deploy.js --network mantra_testnet

Using Remix

  1. Go to Remix IDE
  2. Compile your contract
  3. Select “Injected Provider” (MetaMask)
  4. Ensure MetaMask is connected to MANTRA Chain
  5. Deploy your contract

After Deployment

After deployment, verify your contract on the block explorer. See Verifying Contracts for details.