2.4.1 • Published 1 year ago
@quantnetwork/overledger-core v2.4.1
@quantnetwork/overledger-core
Core Overledger SDK package.
Installation
Install using npm:
npm install @quantnetwork/overledger-core
Or, if you prefer using yarn:
yarn add @quantnetwork/overledger-core
API Reference
Modules
Classes
overledger-core
overledger-core.default
Core Overledger SDK class. Individual dlt packages must be installed manually.
overledger-core.log
**
OverledgerSDK
new OverledgerSDK(options)
Param | Type | Description |
---|---|---|
options | SDKOptions | The DLT Options and Provider Options |
Create the Overledger SDK
overledgerSDK.dlts
The object storing the DLTs loaded by the Overledger SDK
overledgerSDK.validateOptions(options)
Param | Type | Description |
---|---|---|
options | SDKOptions | The DLT Options and Provider Options |
Validate the provided Overledger SDK Options
overledgerSDK.loadDlt(config)
Param | Type | Description |
---|---|---|
config | DLTOptions | DLT name and an optional Private Key to use as the main account |
Load the DLT in the Overledger SDK
Returns: AbstractDLT - The loaded DLT class
overledgerSDK.getEcho(echoRequest)
Param |
---|
echoRequest |
Calls echoecho endpoint, just used to see if things connect
overledgerSDK.refreshAccessToken()
refresh access token
overledgerSDK.getTokensUsingClientIdAndSecret()
get new set of tokens using username, password, clientId and clientSecret
overledgerSDK.sign(unsignedData)
Param |
---|
unsignedData |
Signing a prepared object
2.4.1
1 year ago
2.4.0
1 year ago
2.3.0
2 years ago
2.2.1
2 years ago
2.2.0
2 years ago
2.1.1
3 years ago
2.1.0
3 years ago
2.0.0
3 years ago
1.0.0-beta.5
3 years ago
1.0.0-beta.4
3 years ago
1.0.0-beta.3
4 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.1
5 years ago