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.jsBrowserProviderandSigner: For wallet interactions (connecting, sending transactions). - Direct
fetchcalls: For simple read-only queries (e.g., getting balance or gas price).