0.2.7 • Published 2 months ago

@koibanx/build-sdk v0.2.7

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 months ago

Koibanx Build SDK

The intent of Koibanx is to build a platform to give the benefits of blockchain as a simple service, with metrics, management and flexibility. The main goal is to provide all the extra value that blockchain provides by using modules that anyone can use, without all the knowledge the blockchain implementations demand.

Each user will be able to build it’s projects, which will contain the modules that need to be used. In order to access those modules, given an API KEY, the user will configure and use the modules through the koibanx SDK or through the REST APIs.

SDK Documentation

Feast yourself

Installation

npm install @koibanx/build-sdk

Initialization

Node

Using ES6 import

import BuildSdk from '@koibanx/build-sdk';

const build = BuildSdk({
  baseURL: 'http://your-url',
  apiKey: '',
  secret: ''
});

With require

exports.__esModule = true;
const BuildSdk = require('@koibanx/build-sdk')["default"];

const build = BuildSdk({
  baseURL: 'http://your-url',
  apiKey: '',
  secret: ''
});

Types

  • Typescript (@koibanx/build-sdk/dist/index.d.ts)

Examples

Using ES6 import

import BuildSdk from "@koibanx/build-sdk";

(async () => {
  const build = BuildSdk({
      apiKey: '<APIKEY-PROJECT>',
      secret: '<SECRET-PROJECT>'
  })

  const ledger = await build.ledger()

  const catchError = (err, modulo) => {
      console.log('Modulo: ', modulo);
      console.log('details: ', err.details);
      console.log('shortMessage: ', err.message);
      console.log('errorCode: ', err.code);
  }

  ledger.getLedgerStatus().then((res) => {
      console.log('getLedgerStatus: ', res.toDate);
  }).catch((err) => catchError(err, 'getLedgerStatus'));

  ledger.getEstimatedRemainingLedgerUsage().then((res) => {
      console.log('getEstimatedRemainingLedgerUsage: ', res);
  }).catch((err) => catchError(err, 'getEstimatedRemainingLedgerUsage'));

  ledger.getFuelingLedgerAccount().then((res) => {
      console.log('getFuelingLedgerAccount: ', res);
  }).catch((err) => catchError(err, 'getFuelingLedgerAccount'));

  ledger.wallets.createWallet({})
      .then((res) => console.log('createWallet: ', res))
      .catch((err) => catchError(err, 'createWallet'));
})();
0.2.7

2 months ago

0.2.6

3 months ago

0.2.5

3 months ago

0.2.4

5 months ago

0.2.3

5 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.1.41

10 months ago

0.1.42

9 months ago

0.1.43

9 months ago

0.1.44

9 months ago

0.1.45

8 months ago

0.1.46

7 months ago

0.1.40

10 months ago

0.1.38

10 months ago

0.1.39

10 months ago

0.1.36

10 months ago

0.2.0

7 months ago

0.1.35

1 year ago

0.1.30

1 year ago

0.1.31

1 year ago

0.1.10

1 year ago

0.1.33

1 year ago

0.1.11

1 year ago

0.1.34

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

2 years ago