ethers.js
for wallet interactions and direct fetch
calls for raw JSON-RPC requests, with practical, step-by-step examples.
Table of Contents
- Introduction
- Prerequisites
- RPC Configuration (Mainnet & Testnet)
- Shardeum-specific JSON-RPC Methods
- Standard Ethereum JSON-RPC Methods
- Usage Example
- Error Handling
Introduction
Shardeum is an EVM-compatible blockchain designed for scalability. Like other Ethereum-based networks, it exposes its functionality via a JSON-RPC interface. This allows applications to interact with the blockchain, query data, send transactions, and more.Prerequisites
- Node.js (Download)
- npm (comes with Node.js)
- MetaMask (or similar browser wallet)
- Basic JavaScript knowledge
Next Steps
- RPC Configuration (Mainnet & Testnet)
- Shardeum-specific JSON-RPC Methods
- Standard Ethereum JSON-RPC Methods