ShardeumAPI
class that encapsulates all our interactions with the Shardeum network. This class demonstrates two primary ways to interact with Shardeum’s JSON-RPC:
- Using
ethers.js
BrowserProvider
andSigner
: For wallet interactions (connecting, sending transactions). - Direct
fetch
calls: For simple read-only queries (e.g., getting balance or gas price).