MANTRA Chain provides comprehensive SDKs and libraries to help developers build dApps efficiently. This guide covers the available SDKs and how to get started with them.
Ethers.js is a complete and compact library for interacting with the Ethereum blockchain and its ecosystem, including MANTRA Chain’s EVM module.Installation:
Copy
Ask AI
npm install ethers
Usage:
Copy
Ask AI
import { ethers } from 'ethers';const provider = new ethers.JsonRpcProvider('https://evm.mantrachain.io');const wallet = new ethers.Wallet(privateKey, provider);