All Projects → Datum → datum-sdk

Datum / datum-sdk

Licence: other
Datum Javascript API

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to datum-sdk

sdk-js
Viblo Javascript SDK
Stars: ✭ 17 (+13.33%)
Mutual labels:  sdk-js
api.video-player-sdk
SDK to control and interact with the api.video HTML5 Player
Stars: ✭ 31 (+106.67%)
Mutual labels:  sdk-js
cashscript
⚖️ Easily write and interact with Bitcoin Cash smart contracts
Stars: ✭ 85 (+466.67%)
Mutual labels:  sdk-js

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].