js-bigchaindb-driver/examples
getlarge 3d49a6755e
fix: update example
Signed-off-by: getlarge <ed@getlarge.eu>
2021-03-10 08:49:07 +01:00
..
src fix: update example 2021-03-10 08:49:07 +01:00
.babelrc fix: update example 2021-03-10 08:49:07 +01:00
.gitignore Update structure eslint test 2018-01-20 22:50:17 +01:00
README.md Add SPDX license info strings to all source files 2018-08-10 12:49:26 +02:00
package.json fix: update example 2021-03-10 08:49:07 +01:00

README.md

Quick Notes

dotenv is listed as a dependencies in package.json. If you want to use this, add a .env file to the root of this project (same level as this README.md file) and replace the variables to fit your specific config.

BIGCHAINDB_API_PATH=https://test.bigchaindb.com/api/v1/
BIGCHAINDB_APP_ID=<your-app-id>
BIGCHAINDB_APP_KEY=<your-app-key>

Usage

npm install -> Installs all required dependencies to run these examples.

Different Examples

Basic Usage: Create asset and transfer it to new owner. -> npm start

Async/Await Basic Usage: Basic usage example rewritten with async/await. -> npm run basic-async

Querying for Assets: Query for assetdata or metadata. -> npm run query-assets

Seed/Keypair Functionality: Create keypair with bip39 library. -> npm run seed-func