openlp3
v0.1.3
Published
Open Loyality Points 3 JS SDK
Downloads
0
Readme
OpenLP3 JavaScript SDK
Open Loyality Points 3 (OpenLP3) is an opensource Loyality Point platform build top on public blockchain.
Build
Technologies
Documentation
*OpenLP Version 0.1.0 Doc
Status
Installation
npm install openlp3
Usage
Deploy smart contract from https://github.com/Midhun-Chandrasekhar/OpenLP on EVM compatible blockchain (etherium).
Import
const OpenLP3 = require("openlp3");
Initializing
const olp = new OpenLP3("network_address", "contract_address", "owner_private_key", "abi");
Contract Information
await olp.contractInfo()
Issue loyality point to wallet
await olp.issuePoints("wallet_address", 1000)
Burn loyality point to wallet
await olp.burnPoints("wallet_address", 100)
Get Loyality balance
await olp.userPoints("wallet_address")
License