2.4.1 • Published 1 year ago

@quantnetwork/overledger-dlt-substrate v2.4.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@quantnetwork/overledger-dlt-substrate

Overledger SDK module for interaction with the Substrate distributed ledger technology.

Installation

Install using npm:

npm install @quantnetwork/overledger-dlt-substrate

Or, if you prefer using yarn:

yarn add @quantnetwork/overledger-dlt-substrate

API Reference

Modules

Classes

overledger-dlt-substrate

overledger-dlt-substrate.default

Development package for Substrate.

overledger-dlt-substrate.log

Substrate

new Substrate(sdk, options)

ParamTypeDescription
sdkanythe sdk instance
optionsObjectany additional options to instantiate this dlt

substrate.createAccount()

Create a Substrate account

Returns: Account - the new Substrate account

substrate.setAccount(accountInfo)

ParamTypeDescription
accountInfoAccountThe standardised account information

Set an account for signing transactions for a specific DLT