pruf-js¶
An interface for the PRüF Protocol written in javascript.
Installation¶
Install using npm:
npm i --s pruf-js@latest
Example Initialization¶
note: pruf-js requires an instance of web3.js to initialize.
To learn more about web3.js, check it out here:
1//Example pruf-js initialization code
2
3const Web3 = require('web3');
4const PRUF = require('pruf-js');
5
6const web3 = new Web3("https://kovan.infura.io/v3/yourInfuraKeyHere");
7let chainId = 42;
8async () => {
9const pruf = new PRUF(
10 web3, // Web3 instance
11 chainId, // ChainId of Web3 instance
12 false, // Fetch contract addresses?
13 true // Enable debug logs?
14);
15
16pruf.init().then(console.log)
17}
Contribute to the Project¶
Issue Tracker: https://github.com/jamesBsmyth/pruf_js/issues
Source Code: https://github.com/jamesBsmyth/pruf_js
Developer Support¶
If you are having issues, please let us know. Contact us at: support@pruf.io
Or on Telegram: https://t.me/pruftalk
Project Resources¶
Website: https://pruf.io
License¶
The project is licensed under the MIT license.