1.0.0 • Published 3 years ago
acertweb v1.0.0
acertweb - Acert JavaScript SDK
Installation
Node.js
npm install acertweb
or
yarn add acertweb
Browser
First, don't use the release section of this repo, it has not updated in a long time.
Then easiest way to use AcertWeb in a browser is to install it as above and copy the dist file to your working folder. For example:
cp node_modules/acertweb/dist/Acertweb.js ./js/AcertWeb.js
so that you can call it in your HTML page as
<script src="./js/AcertWeb.js"><script>
Creating an Instance
First off, in your javascript file, define AcertWeb:
const AcertWeb = require('acertweb')
When you instantiate AcertWeb you can define
- fullNode
- privateKey
const acertWeb = new AcertWeb({
fullHost: 'https://grid.acertchain.com/v1/api/',
privateKey: 'your private key'
})
Contributions
In order to contribute you can
- fork this repo and clone it locally
- install the dependencies —
npm i
- do your changes to the code
- build the AcertWeb dist files —
npm run build
- push your changes and open a pull request
1.0.0
3 years ago