Skip to main content
We’ll be working with a ShardeumAPI class that encapsulates all our interactions with the Shardeum network. This class demonstrates two primary ways to interact with Shardeum’s JSON-RPC:
  1. Using ethers.js BrowserProvider and Signer: For wallet interactions (connecting, sending transactions).
  2. Direct fetch calls: For simple read-only queries (e.g., getting balance or gas price).

Full Class Code