
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
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.
npm install 'DNA-ts-sdk' --save
or
yarn add 'DNA-ts-sdk'
git clone 'https://github.com/DNAProject/DNA-ts-SDK.git'
Then install the dependencies with:
npm install
or
yarn
Compile the project with the:
npm run build:dev // or npm run build:prod
or
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
or
yarn run test
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');
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.
FAQs
Comprehensive TypeScript library for the DNA blockchain.
The npm package dna-ts-sdk receives a total of 7 weekly downloads. As such, dna-ts-sdk popularity was classified as not popular.
We found that dna-ts-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.