Comprehensive TypeScript library for the DAD blockchain.
Last updated a year ago by taylorzhang .
LGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dad-ts-sdk 
SYNC missed versions from official npm registry.

Ontology TypeScript SDK

Version V1.0.21


This is the official Ontology TypeScript SDK - a comprehensive library for developing with the Ontology blockchain in both TypeScript and JavaScript. It currently supports management of wallets, digital identities and digital assets - as well as the deployment and invocation of smart contracts.

Getting Started


Download Through npm/Yarn

npm install 'ontology-ts-sdk' --save


yarn add 'ontology-ts-sdk'

Build from Source Code


git clone ''

Then install the dependencies with:

npm install




Compile the project with the:

npm run build:dev // or npm run build:prod


yarn run build:dev // or yarn run build:prod

This will create a compiled version of the SDK in the lib directory.


To run the tests in the test directory, use:

npm run test


yarn run test

Use in Project


Using import to include the modules from 'ontology-ts-sdk':

import {Wallet} from 'ontology-ts-sdk';
var wallet = Wallet.create('test');


Using require to include the modules from 'ontology-ts-sdk':

var Ont = require('ontology-ts-sdk');
var wallet = Ont.Wallet.create('test');

In the Browser

To use in the browser you must use the compiled version (as listed above). The browser.js file is located in the lib directory. Include it into the project with a <script> tag:

<script src="./lib/browser.js"></script>

Everything will be available under the Ont variable, just like in the require example above.

var wallet = Ont.Wallet.create('test');


Contributors are welcome to the ontology-ts-sdk. Before beginning, please take a look at our contributing guidelines. You can open an issue by clicking here.

If you have any issues getting setup, open an issue or reach out in the Ontology Discord.


The Ontology TypeScript SDK is availabl under the LGPL-3.0 License.

Current Tags

  • 1.0.6                                ...           latest (9 months ago)

7 Versions

  • 1.0.6                                ...           9 months ago
  • 1.0.5                                ...           9 months ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (24)
Dependents (0)

Copyright 2014 - 2016 © |