Getting Started with EVM Module
MANTRA-Chain/evm is a forked version of cosmos/evm, offering an EVM-compatible framework for Cosmos SDK-based blockchain development. It enables seamless EVM integration into Cosmos chains.
This Ethereum Virtual Machine (EVM) module supports app-chain creation with native interoperability, IBC for ERC20 tokens, and custom extensions/precompiles. Key features include customizable opcodes, EIP-1559 fees, JSON-RPC, and EIP-712 signing. Primarily in Go (91.9%), with Solidity and JS support. Constantly under development and audit, see our Github for latest versioning. Apache 2.0 licensed.
Overview
MANTRA Chain supports smart contracts written in both Rust (via CosmWasm) and Solidity. MANTRA Chain Testnet, DuKong (mantra-dukong-1) is our primary testnet for both of these smart contract languages. It has formally been configured to support both the EVM module and wasmd built for chains based on the Cosmos SDK.
For assistance, please reach out to: contact AT mantrachain.io
In the pages following, we will guide you on recommended local environment setup, configuration, and steps to be able to interact with EVM on MANTRA Chain on both testnet (mantra-dukong-1 ) and mainnet (mantra-1 ).
MANTRA Chain Details
MANTRA Chain Testnet Full Chain ID
mantra-dukong-1
MANTRA Chain Full Chain ID
mantra-1
MANTRA EVM Dukong Testnet Chain ID
5887
MANTRA EVM Mainnet Chain ID
5888
COSMOS Endpoints
MANTRA Mainnet API
https://api.mantrachain.io
MANTRA Mainnet RPC
https://rpc.mantrachain.io
MANTRA Mainnet GRPC
grpc.mantrachain.io
DuKong API
https://api.dukong.mantrachain.io
DuKong RPC
https://rpc.dukong.mantrachain.io
DuKong GRPC
grpc.dukong.mantrachain.io
EVM Endpoints
MANTRA Mainnet RPC
https://evm.mantrachain.io
MANTRA Mainnet WS
wss://evm.mantrachain.io/ws
DuKong RPC
https://evm.dukong.mantrachain.io
DuKong WS
wss://evm.dukong.mantrachain.io/ws
Additional URLs of Note
MANTRA Mainnet COSMOS Explorers
MANTRA Mainnet EVM Explorers
DuKong Testnet COSMOS Explorers
DuKong Testnet EVM Explorers
Testnet OM Faucet
Tooling Walkthrough
Hardhat
Hardhat is a development environment for Ethereum software. It helps developers manage and automate the recurring tasks involved in building smart contracts and 1 decentralized applications (dApps).
Foundry
"Foundry CLI" is a command-line interface provided by the Foundry development toolkit for Ethereum smart contracts. Foundry is known for its speed and its use of Solidity for testing.
Last updated