Installation

Option 1: NPM package (recommended)

Install the SDK from NPM page (zh-web-sdk).

npm i zh-web-sdk

Option 2: Download Release Bundle

Download the Zero Hash web SDK release bundle: https://github.com/seedcx/zh-web-sdk/releases

Copy index.js to somewhere in your code where it is public and accessible (alternatively you may include it in your build process with other frontend assets).

Add the following code to your HTML <head> section:

<! -- Note: "type" property_must be "module" --> 
<script type="module" src="zh_web_sdk/dist/index.js"></script>

The Zero Hash SDK class will be available at window.zerohash.