ShardeumAPI class, create an index.js (or similar) file in your project:
How to Run This Example (Browser-based)
- Save the
ShardeumAPIclass code asShardeumAPI.js. - Save the example usage code as
index.js. - Create an
index.htmlfile in the same directory (see the guide for a template). - Open
index.htmlin your web browser with MetaMask installed. - Open your browser’s developer console (F12).
- Click the “Run Shardeum Example” button on the webpage.