0.0.1 • Published 4 years ago

boa-sdk-ts-test v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

boa-sdk-ts

SDK to interface with the BOSAGORA blockchain

Installation

npm install boa-sdk-ts --save
yarn add boa-sdk-ts
bower install boa-sdk-ts --save

Usage

TypeScript

import * as boasdk from 'boa-sdk-ts';

// Create BOA Client
let boa_client = new boasdk.BOAClient("http://localhost");

// Query
boa_client.getAllValidators(10)
.then((validators: Array<boasdk.Validator>) =>
{
    // On Success
})
.catch(err =>
{
    // On Error
});

Javascript

var boasdk = require('boa-sdk-ts');

// Create BOA Client
var boa_client = new boasdk.BOAClient("http://localhost");

// Query
boa_client.getAllValidators(10)
.then(function (validators)
{
    // On Success
})
.catch(function (err)
{
    // On Error
});

Test

npm run test