vinupay.js
v0.6.11
Published
VinuPay.js is a JavaScript/TypeScript library for VinuPay. Now on mainnet!
Downloads
65
Maintainers
Readme
VinuPay.js 🐶
VinuPay.js is a JavaScript library for VinuPay.
Installation 💾
Use the package manager npm to install VinuPay.js.
npm install vinupay.js
Usage 💻
ES6 🐝
import VinuPay from 'vinupay.js/offchain.js'
// Or the main version
// import VinuPay from 'vinupay.js'
// Create the instance
const Client = new VinuPay("https://node-vite.imal.dev");
// Check how many merchants were created.
Client.getRegisteredNamesCount().then((res) => {
console.log(`A total of ${res} merchants were created.`);
});
CommonJS 🐱
const VinuPay = require("vinupay.js/offchain.js").default;
// Or the main version
// const VinuPay = require("vinupay.js").default;
// Create the instance
const Client = new VinuPay("https://node-vite.imal.dev");
// Check how many merchants were created.
Client.getRegisteredNamesCount().then((res) => {
console.log(`A total of ${res} merchants were created.`);
});
Updates 📡:
- [x] Soon
Contributing 🎉
Pull requests are welcome on our GitHub. For major changes, please open an issue first to discuss what you would like to change.
Documentation 📚 (Work in Progress 🚧)
Documentation for both VinuPay and VinuPay.js can be found here.
Credits 🎩
VinuPay.js is created by iMalFect
License 📜
VinuPay.js is licensed under GNU GPLv3