Skip to main content

Overview

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.

JavaScript/TypeScript SDKs

Ethers.js

Ethers.js is a complete and compact library for interacting with the Ethereum blockchain and its ecosystem, including MANTRA Chain’s EVM module. Installation:
npm install ethers
Usage:
import { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider('https://evm.mantrachain.io');
const wallet = new ethers.Wallet(privateKey, provider);
Resources:

Web3.js

Web3.js is a collection of libraries that allow you to interact with a local or remote Ethereum node using HTTP, IPC, or WebSocket. Installation:
npm install web3
Resources: