Overview
MANTRA Chain supports both EVM and Cosmos SDK development. This page covers the available SDKs and libraries for each ecosystem.EVM Libraries
These libraries work with MANTRA Chain’s EVM module for Solidity smart contract development.Ethers.js (Recommended)
Ethers.js is a complete and compact library for interacting with the Ethereum blockchain. It’s the most popular choice for modern dApp development. Installation:Viem
Viem is a modern, lightweight alternative to ethers.js with better TypeScript support and modular architecture. Installation:Web3.js
Web3.js is a collection of libraries for interacting with Ethereum nodes. It’s widely used but heavier than alternatives. Installation:Cosmos SDK Libraries
These libraries interact with MANTRA Chain’s native Cosmos SDK modules.CosmJS
CosmJS is the official JavaScript library for Cosmos SDK chains. Use it for native token transfers, staking, governance, and IBC operations. Installation:Keplr Wallet Integration
Integrate with Keplr wallet for user authentication and transaction signing. Installation:Go Libraries
Cosmos SDK
For building custom modules or interacting with MANTRA Chain programmatically in Go.Python Libraries
Web3.py
Python library for EVM interactions. Installation:CosmPy
Python library for Cosmos SDK chains. Installation:Network Configuration Quick Reference
| Network | EVM RPC | Cosmos RPC | Chain ID (EVM) | Chain ID (Cosmos) |
|---|---|---|---|---|
| Mainnet | https://evm.mantrachain.io | https://rpc.mantrachain.io | 5888 | mantra-1 |
| Testnet | https://evm.dukong.mantrachain.io | https://rpc.dukong.mantrachain.io | 5887 | mantra-dukong-1 |
Next Steps
- Deploy a Smart Contract - Get started with EVM development
- Network Details - Full endpoint reference
- EVM Getting Started - Complete EVM development guide