1.0.2 • Published 3 years ago

kuknos-extension-sdk v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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:

Firefox Kuknos Extension

Chrome Kuknos Extension

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