Skip to main content

2. ion-sdk-js

This page show how to develop ion-sdk-js

1. Install nodeJS and npm

https://nodejs.org

2. Add/Modify code

The main code is here

ion-sdk-js/src

written by TS

4. Build

cd ion-sdk-js
npm i

you will see new sdk in:

ion-sdk-js/dist

5. Test with html

for example: example)

modify these lines:

    <script src="yoursdkpath/ion-sdk-js/dist/ion-sdk.min.js"></script>
<script src="yoursdkpath/ion-sdk-js/dist/json-rpc.min.js"></script>

or

    <script src="yoursdkpath/ion-sdk-js/dist/ion-connector.min.js"></script>

tips:replace yoursdkpath with real path

run this web app with chrome and test