/digiassets-sdk

DigiAssets SDK for issuing and transferring digital assets using blockchain technology

Primary LanguageJavaScript

DigiAssets SDK

Easy to use SDK for issuing and transferring digital assets using DigiAssets on top of DigiByte blockchain technology. Coupled with state-of-the-art BIP32 & BIP44 hierarchical deterministic wallet to hold your assets.

You can find a more detailed guide of using the sdk here in the DigiAssets Getting Started Wiki

Installation

$ npm i digiassets-sdk

Usage

var DigiAssets = require('digiassets-sdk')
var da = new DigiAssets()
da.init(function (err) {
  // Colored-Coins SDK is now ready
})

Testing

$ mocha

Note: without some configuration, some tests (all those which actually need funding) will fail.
In order for all the tests to pass, you'll need to have some funds, i.e. Bitcoins (or testnet-coins when network is 'testnet').
Do this by creating a JSON file, which includes privateSeed \ mnemonic where which the address in the BIP44 path m/44'/0'/0'/0/0 for mainnet (m/44'/1'/0'/0/0 for tetsnet) has enough Bitcoins (or testnet-coins):

$ cd /path/to/coloredcoins-sdk
$ echo '{"network":"testnet", "privateSeed":"YourPrivateSeed"}' >> test/settings.json
$ mocha

License

Apache-2.0