Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Dash library for JavaScript/TypeScript ecosystem (Wallet, DAPI, Primitives, BLS, ...)
Dash library for JavaScript/TypeScript ecosystem (Wallet, DAPI, Primitives, BLS, ...)
DashJS allows you to transact on L1 or fetch/register documents on L2 within a single library, including management and signing of your documents.
Find more in the :
In order to use this library, you will need to add it to your project as a dependency.
Having NodeJS installed, just type : npm install dash
in your terminal.
npm install dash
For browser usage, you can also directly rely on unpkg :
<script src="https://unpkg.com/dash"></script>
import DashJS from "dash";
import schema from "./schema.json";
const network = "testnet";
const opts = {
network,
mnemonic: "arena light cheap control apple buffalo indicate rare motor valid accident isolate",
schema
};
const sdk = new DashJS.SDK(opts);
const account = sdk.wallet.getAccount();
async function sendPayment(){
const txOpts = {recipient:{address:'yLptqWxjgTxtwKJuLHoGY222NnoeqYuN8h', amount:0.12}};
const tx = await account.createTransaction(txOpts)
console.log(tx)
}
async function readDocument() {
const profile = await sdk.platform.fetchDocuments('profile',{name:'Bob'})
console.log(profile);
}
dashpay.profile
and passing a named-schemas object.
See more on how to work with multiple contracts in detailDashJS works using multiple dependencies that might interest you :
Some features might be more extensive in those libs, as DashJS only wraps around them to provide a single interface that is easy to use (and thus has less features).
MIT © Dash Core Group, Inc.
FAQs
Dash library for JavaScript/TypeScript ecosystem (Wallet, DAPI, Primitives, BLS, ...)
The npm package dash receives a total of 2,046 weekly downloads. As such, dash popularity was classified as popular.
We found that dash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.