0.13.2-0 • Published 4 years ago

trustlines-clientlib v0.13.2-0

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

trustlines-network clientlib

A TypeScript/Javascript library for interacting with the trustlines-network protocol.

Read the Documentation

Installation

Install the library using npm or yarn

$ npm install
// OR
$ yarn install

Import ES6 module

import { TLNetwork } from 'trustlines-clientlib'

Use the following configuration to connect to the currently deployed test setup.

NOTE: The trustlines-network contracts are deployed on the Kovan testnet. Some Kovan Test ETH is therefore required to interact with the contracts in this setup.

import { TLNetwork } from 'trustlines-clientlib'

const config = {
  protocol: 'https',
  host: 'relay0.testnet.trustlines.network',
  path: 'api/v1/'
}

const tlNetwork = new TLNetwork(config)

Example

This library is a promise-based library. So every asynchronous call will return a native Javascript promise. If an error occurs the library will throw it. The caller has to handle it appropriately.

try {
  const networks = await tlNetwork.currencyNetwokr.getAll()
} catch (error) {
  console.log('Caught error:', error)
}
0.13.2-0

4 years ago

0.13.0

4 years ago

0.11.1-0

4 years ago

0.12.1

4 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.10.1-0

4 years ago

0.10.0

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.1-0

5 years ago

0.5.0

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.3-0

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago