Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including dna-ts-sdk with all npm packages installed. Try it out:

var dnaTsSdk = require("dna-ts-sdk")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

dna-ts-sdk v1.1.0

Comprehensive TypeScript library for the DNA blockchain.

DNA TypeScript SDK

Version V1.1.0


This is the official DNA TypeScript SDK - a comprehensive library for developing with the DNA 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.


Download Through npm/Yarn

npm install 'DNA-ts-sdk' --save


yarn add 'DNA-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 'DNA-ts-sdk':

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


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

var DNA = require('DNA-ts-sdk');
var wallet = DNA.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 DNA variable, just like in the require example above.

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


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


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


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free