Giter Site home page Giter Site logo

resslerruntime / overledger-sdk-javascript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from architectjyothi/overledger-sdk-javascript

1.0 0.0 0.0 2.58 MB

Overledger software development kit for the JavaScript language.

Home Page: https://www.quant.network

License: Apache License 2.0

JavaScript 15.80% TypeScript 82.68% Makefile 0.19% Handlebars 1.34%

overledger-sdk-javascript's Introduction

Overledger JavaScript SDK

Welcome to the developer's guide to use the Overledger SDK written in Javascript by Quant Network.

Introduction to the Overledger SDK

Overledger is a blockchain operating system that allows applications to connect to multiple distributed ledger technologies (DLTs) or blockchains, thus becoming Multi-chain Applications (MApps). The Overledger SDK enables developers to create signed transactions and send them simultaneously to all supported DLTs through the Overledger Blockchain Programming Interface (BPI).

Technologies

The Overledger SDK is a collection of node packages written in Typescript. Currently, the supported DLTs are Ethereum and Ripple. Bitcoin support will be re-enabled once the migration to the public testnet is complete.

Prerequisites

  • Register for a free developer account on Quant Developer's Portal
  • You will require a MApp ID and BPI key:
    • Register your application in order to get a free MApp ID.
    • Verify your Quant token, and create a BPI key.
  • Node.js 10
  • Python 2.7

Installation

The Overledger SDK can be installed as a node module. If all supported DLTs are necessary, the bundle package can be installed, which will include all required dependencies.

npm install @quantnetwork/overledger-bundle

Or, if you prefer using yarn:

yarn add @quantnetwork/overledger-bundle

Alternatively, the suite of packages allows developers to chose which blockchains/DLTs they would like to utilise by installing the core package and the individual DLT packages. Such as if you only want to install overledger-core and overledger-ethereum you would enter:

npm install @quantnetwork/overledger-core
npm install @quantnetwork/overledger-dlt-ethereum

Or, if you prefer using yarn:

yarn add @quantnetwork/overledger-core
yarn add @quantnetwork/overledger-dlt-ethereum

Getting started

Initialize the SDK with the available DLTs. Optionally you can name the Overledger network provider to connect to and a timeout period can be specified (by default it is 5000ms).

const OverledgerSDK = require("@quantnetwork/overledger-bundle").default;

const overledger = new OverledgerSDK("mappId", "bpiKey", {
  dlts: [{ dlt: "ethereum" }, { dlt: "ripple" }],
  provider: { network: 'testnet', timeout: 1500 }, // Optional
});

API Reference

The SDK packages provide functions for interacting with the Overledger BPI Gateway as well as support for offline account generation and transaction signing. The functions which interact with the Overledger BPI (send, get) return a promise with a standard Axios response which includes the BPI data in the data field.

Please check the examples folder for details on how to sign and send transactions, as well as do account queries. The api reference page can be found here.

Examples

Examples can be found in the examples folder.

Don't forget to setup your mappId and bpiKey, you can get these on the developer portal.

Development

The Overledger JavaScript SDK manages multiple packages through Lerna. To develop the SDK, first install lerna:

npm install -g lerna

To build the project, download the yarn package manager and run:

yarn run build

This will build and link the packages together.

Documentation

Please update the documentation after your changes by editing the JSDoc annotations inside the source files and then run the following command from the root directory:

yarn run docs

License

The Apache 2.0 license can be found here.

overledger-sdk-javascript's People

Contributors

alexchiriac avatar lukerquant avatar oktapodia avatar mahsa-bytt avatar richardbahari avatar jeanpauldejong avatar najla-quant avatar salmanquantnetwork avatar dependabot[bot] avatar salmarvasti2020 avatar

Stargazers

Phillip Ressler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.