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