kuknos-extension-sdk
v1.0.2
Published
Kuknos extension is a wallet on Kuknos Network build exclusively for internet browsers.
Downloads
1
Readme
Kuknos Extension SDK
Kuknos extension is a wallet on Kuknos Network build exclusively for internet browsers.
You can use this SDK to do and short some operation without sharing secret key to any third party applications.
You just have to install the SDK and use the appropriate functions. Users of your application have to install the Kuknos browser extension on their browser for interaction with the SDK and your application.
Install Kuknos browser extension with below links:
Installation
Using npm:
npm i kuknos-extension-sdk
Using yarn:
yarn add kuknos-extension-sdk
Use
First import it like below:
import KuknosIntent from 'kuknos-extension-sdk';
You can set the network: [default is public
]
KuknosIntent.setNetwork('public');
example method for payment
:
KuknosIntent.payment({
amount: 0.0001,
destination:'GARTVC5KJUEBPXSNDKFXBPK7U5QZJCBEJMWQ66HE7AHFSDYWB6TG5N6C',
asset_code: 'PMN',
memo: 'memo text'
})
.then((result) => {
console.log(result);
}).catch((err) => {
console.log(err);
});
Document
You can find all methods in Docs