npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

dotwallet

v0.1.6

Published

A DotWallet helper library

Downloads

37

Readme

dotwallet-node

Documentation

The documentation for the DotWallet API can be found here.

The Node library documentation can be found here.

Versions

dotwallet-node uses a modified version of Semantic Versioning for all changes. See this document for details.

Supported Node.js Versions

This library supports the following Node.js implementations:

  • Node.js 10
  • Node.js 12
  • Node.js 13

TypeScript is supported for TypeScript version 1.0 and above.

Sample Usage

Check out these code examples in JavaScript and TypeScript to get up and running quickly.

Environment Variables

dotwallet-node supports credential storage in environment variables. If no credentials are provided when instantiating the Twilio client (e.g., const client = require('dotwallet')();).

Getting help

If you need help installing or using the library, please check the DotWallet Support Help Center first.

If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!

Contributing

Bug fixes, docs, and library improvements are always welcome. Please refer to our Contributing Guide for detailed information on how you can contribute.

⚠️ Please be aware that a large share of the files are auto-generated by our backend tool. You are welcome to suggest changes and submit PRs illustrating the changes. However, we'll have to make the changes in the underlying tool. You can find more info about this in the Contributing Guide.

If you're not familiar with the GitHub pull request/contribution process, this is a nice tutorial.

Getting Started

If you want to familiarize yourself with the project, you can start by forking the repository and cloning it in your local development environment. The project requires Node.js to be installed on your machine.

After cloning the repository, install the dependencies by running the following command in the directory of your cloned repository:

npm install --save dotwallet

Use Demo

1.托管账户数据上链 目前支持的最大上链数据大小1M,这个大小限制近期会不断更新。

const DW = require('dotwallet');
const testAppID = '5a192d599b0be66bdb2ef72784acb0f8';
const testAppSecret = 'b71557823ce2b25d07fb186368999181';
const merchant = new DW.DWMerchant(testAppID, testAppSecret);
//显示托管账户地址
const depositAddr = await merchant.DepositAddress(); 
//使用此接口查询托管账户余额
const balance = await merchant.DepositBalance();
//托管账户数据上链
const opreturn1 = "this is test push chain data.";
const result = await merchant.PushChainData(opreturn1);

2.非托管账户数据上链

const DW = require('dotwallet');
const opreturn1 = "this is test push chain data.";
//打点钱包用户的邮箱地址
const email = "[email protected]"; 
//签名的回调服务器地址
const signCallBack = "http://192.168.17.218:9876/";
const result = await DW.PushChainData(email, signCallBack, opreturn1);