Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
e2e
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

datum-sdk

javascript api for Datum Blockchain

Documentations

Getting Started

Installation

Node

npm install datum-sdk --save

Browser

Add this link in your page

<script src="https://cdn.jsdelivr.net/npm/datum-sdk/dist/datum.min.js"></script>

React-Native

Steps to setup your React-Native project to use Datum-SDK

Test

E2E tests

npm run test:e2e

Usage

Use the Datum object directly from global namespace:

console.log(Datum); // {version: {…}}

Create Datum Identity

const password = 'Hollow Morpheus Mauled...';
Datum.createIdentity(
  password
).then((res) => {
  console.log(res) // {seed:"...", keystore:"{"encSeed":{"encStr":"eddG2...","hdIndex":1,"version":3}"}
}).catch((e) => {
  console.error(e)
});

Examples

For more code snippets checkout our getting started documentations

Check our examples folder.

Testing (mocha)

Run tests based Mocha test framework

mocha ./test