Developer Tools
Ethers.js
Build with Ethers.js on RISE
Ethers.js is a complete and compact library for interacting with the Ethereum blockchain and its ecosystem. It's widely used and battle-tested.
Why Ethers.js?
- Complete: Full-featured library with everything you need
- Well-documented: Extensive documentation and examples
- Stable: Mature and battle-tested in production
- Popular: Large community and ecosystem support
- Easy to learn: Intuitive API design
Quick Start
npm install ethersBasic Setup
import { ethers } from 'ethers';
// Connect to RISE Testnet
const provider = new ethers.JsonRpcProvider('https://testnet.riselabs.xyz');
// Get the latest block number
const blockNumber = await provider.getBlockNumber();
console.log('Current block:', blockNumber);
// Create a wallet
const wallet = new ethers.Wallet(privateKey, provider);
console.log('Wallet address:', wallet.address);
// Get balance
const balance = await provider.getBalance(wallet.address);
console.log('Balance:', ethers.formatEther(balance), 'ETH');Network Configuration
const RISE_TESTNET = {
chainId: 11155931,
name: 'RISE Testnet',
rpcUrl: 'https://testnet.riselabs.xyz',
explorer: 'https://explorer.testnet.riselabs.xyz'
};Next Steps
Get Started
Set up your first Ethers.js project
Read Contracts
Query blockchain data and contract state
Write Contracts
Send transactions and interact with contracts