You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+43-21Lines changed: 43 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,49 @@ Welcome to the developer's guide to use the Overledger SDK written in Javascript
4
4
5
5
## Introduction to the Overledger SDK
6
6
7
-
Overledger is a REST API that allows applications to connect to multiple distributed ledger technologies (DLTs) or blockchains through the use of a standardised interface. The Overledger SDK enables developers to create signed transactions and send them to the supported DLTs.
7
+
Overledger is a REST API that allows applications to connect to multiple distributed ledger technologies (DLTs) or blockchains through the use of a standardised interface.
8
+
9
+
The Overledger SDK enables developers to create blockchain accounts, create signed transactions and refresh Overledger access tokens.
8
10
9
11
## Technologies
10
12
11
-
The Overledger SDK is a collection of node packages written in Typescript. Currently, the supported DLTs are Bitcoin, Ethereum and Ripple.
13
+
The Overledger SDK is a collection of node packages written in Typescript. Currently, the supported DLTs are Bitcoin, Ethereum and the XRP Ledger.
12
14
13
15
## Prerequisites
14
16
15
-
- nodejs 10
17
+
- nodejs v10 >= 10.22.0, or v12 >= 12.13.0, or v14 >= 14.15.0, or >= v15
16
18
- yarn
17
19
- lerna
18
20
19
21
## Installation
20
22
21
-
Currently, v2 of the Overledger SDK is not published on NPM or Yarn. Thus, we have to build it on our machine before using it in our own projects.
23
+
The Overledger SDK can be installed as node modules.
24
+
25
+
If all supported Distributed Ledger Technologies (DLTs) are necessary, the bundle package can be installed, which will include all the required dependencies.
26
+
27
+
```
28
+
npm install @quantnetwork/overledger-bundle
29
+
```
30
+
31
+
Or, if you prefer using [yarn](https://yarnpkg.com/):
32
+
33
+
```
34
+
yarn add @quantnetwork/overledger-bundle
35
+
```
36
+
37
+
Alternatively, the suite of node packages allows developers to chose which DLTs they would like to utilise by installing the core overledger package and the individual DLT packages. For example, if you only want to use the Ethereum blockchain, you will need only the overledger-core and overledger-ethereum packages, which you can install via:
38
+
39
+
```
40
+
npm install @quantnetwork/overledger-core
41
+
npm install @quantnetwork/overledger-dlt-ethereum
42
+
```
43
+
44
+
Or, if you prefer using [yarn](https://yarnpkg.com/):
22
45
23
-
The Overledger SDK can be installed as a node module. If all supported DLTs are necessary,
24
-
the overledger-bundle package can be installed, which will include all required dependencies.
46
+
```
47
+
yarn add @quantnetwork/overledger-core
48
+
yarn add @quantnetwork/overledger-dlt-ethereum
49
+
```
25
50
26
51
#### Building
27
52
@@ -37,7 +62,7 @@ To build the project, first download the yarn package manager:
37
62
npm install -g yarn
38
63
```
39
64
40
-
Then, we can run run:
65
+
Then, we can run build:
41
66
42
67
```
43
68
yarn run build
@@ -46,7 +71,8 @@ yarn run build
46
71
>Note: For Windows users, please use git bash as the build currently uses UNIX-based commands. You will also need to make sure you have 'make' installed for windows. This is done by running powershell first as Administrator and then installing make with chocolatey: ```choco install make```
47
72
48
73
This will build and link the packages together.
49
-
To test if the package built correctly, you can run
74
+
75
+
To test if the package built correctly, you can run:
50
76
51
77
```
52
78
yarn run test
@@ -57,20 +83,20 @@ yarn run test
57
83
After building, you can install it in your own project. Make sure to specify the version if you'd like to use this version of the SDK vs the public one from NPM.
58
84
59
85
```
60
-
npm install @quantnetwork/overledger-bundle@2.0.0
86
+
npm install @quantnetwork/overledger-bundle@2.1.1
61
87
```
62
88
63
89
Or, if you prefer using [yarn](https://yarnpkg.com/):
64
90
65
91
```
66
-
yarn add @quantnetwork/overledger-bundle@2.0.0
92
+
yarn add @quantnetwork/overledger-bundle@2.1.1
67
93
```
68
94
69
-
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:
95
+
Alternatively, the suite of packages allows developers to chose which DLTs they would like to utilise by installing the core package and the individual DLT packages. For example, if you only want to use the Ethereum blockchain, you will need only the overledger-core and overledger-ethereum packages, which you can install via:
To get started, you can take a look at the examples folder for common use cases. There is a README file with detailed instructions in the signing example.
111
+
To get started, you can take a look at the examples folder for basic use cases. For more complicated use cases, please explore our Overledger demo application github [here](https://github.com/quantnetwork/quant-demo-application).
88
112
89
113
## API Reference
90
114
91
-
The SDK packages provide functions for interacting with the Overledger API Gateway as well as support for offline account generation and transaction signing.
92
-
The functions which interact with the Overledger API (send, get) return a promise with a standard Axios response which includes the BPI data in the `data` field.
93
-
94
-
Please check the examples folder for details on how to sign and send transactions, as well as do account queries. The sdk reference page can be found [here](api_reference.md).
115
+
The SDK packages provide functions for interacting with some of the Overledger API Gateway as well as support for offline account generation and transaction signing.
116
+
The functions which interact with the Overledger API (get, post) return a promise with a standard Axios response which includes the BPI data in the `data` field.
95
117
96
-
The Overledger API Swagger docs can be found here: https://api.sandbox.overledger.io/v2/documentation/swagger-ui.html
118
+
The full Overledger API Swagger docs can be found [here](https://docs.overledger.io/).
0 commit comments