Skip to main content

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 is a complete and compact library for interacting with the Ethereum blockchain. It’s the most popular choice for modern dApp development. Installation:
Basic Usage:
Resources:

Viem

Viem is a modern, lightweight alternative to ethers.js with better TypeScript support and modular architecture. Installation:
Basic Usage:
Resources:

Web3.js

Web3.js is a collection of libraries for interacting with Ethereum nodes. It’s widely used but heavier than alternatives. Installation:
Basic Usage:
Resources:

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:
Basic Usage:
Resources:

Keplr Wallet Integration

Integrate with Keplr wallet for user authentication and transaction signing. Installation:
Basic Usage:
Resources:

Go Libraries

Cosmos SDK

For building custom modules or interacting with MANTRA Chain programmatically in Go.
Resources:

Python Libraries

Web3.py

Python library for EVM interactions. Installation:
Basic Usage:
Resources:

CosmPy

Python library for Cosmos SDK chains. Installation:
Resources:

Network Configuration Quick Reference

Next Steps