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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@chainup-custody/js-wapi-sdk

v1.0.1

Published

chainup custody wapi service. node sdk tool for calling wapi service

Downloads

5

Readme

js-wapi sdk

wapi api client sdk

Dependency package installation:

npm install @chainup-custody/[email protected]

How to use:

const Cons = require('@chainup-custody/js-wapi-sdk/utils/Constants');
const addrApi = require('@chainup-custody/js-wapi-sdk/apidao/AddressRegisterApi');
const depositNotify = require('@chainup-custody/js-wapi-sdk/apidao/DepositNotifyApi');
const withdraw = require('@chainup-custody/js-wapi-sdk/apidao/WithdrawApi');


Cons.setAppId('baaceb1e506e1b5d7d1f0a3b1622583b');//app id
Cons.setHost('http://awstestopenapi.hiwallet.pro');//interface domain name
Cons.setPubKey('wass public key');
Cons.setPrivateKey('Merchant private key');

//1.registered address
addrApi.registerAddress({symbol: 'VLX', addresses: 'aaaaabbbbb',memo:false}).then(function (data) {
    console.debug("Registered address results:-----" + JSON.stringify(data));
});

//2.obtain the number of available address
addrApi.checkAvailableAddress({symbol: 'VLX'}).then(function (data) {
    console.debug("obtain the number of available address:------" + JSON.stringify(data));
});

//3.deposit notification interface
depositNotify.depositNotify({
        "address_to": "LZC5G3rWkzsDDRRJnMD9mfdefe2ncEFnNH",
        "amount": 123,
        "balance": 12,
        "confirm": 1000,
        "request_id": "2343423242452",
        "status": 1,
        "symbol": "VLX",
        "txid": "adb936e24130c3fffer294d607a865f467a906b96850e02c1a2771c759f0bfdsf"
    }
).then(function (data) {
    console.debug("notification result:------" + JSON.stringify(data));
});

//4.internal notification
depositNotify.internalNotify({
    "address_to": "aaaaabbbbb",
    "amount": 234234,
    "balance": 12,
    "confirm": 1,
    "fee": 12,
    "symbol": "VLX",
    "txid": "adb936e24130c3fff9a6294d607a865f467a906b96850e02c1a2771c759ewwe"
}).then(function (data) {
    console.debug("internal notification result:------" + JSON.stringify(data));
});

//5.Get the withdrawal list
withdraw.withdrawConsume({symbol: "VLX"}).then(function (data) {
    console.debug("obtain the result of the withdrawal list:------" + JSON.stringify(data));
});

//6.Withdrawal notification interface
withdraw.withdrawNotify({
    "address_to": "L111ZC5G3rWkzsDDRRJnMD9mfdefe2ncEF",
    "amount": 234234.234,
    "balance": 0,
    "confirm": 1000,
    "fee": 12,
    "symbol": "VLX",
    "trans_id": 50021,
    "txid": "adb936e243fa6294d607a865f467a906b96850e02c1a2771c759ewrweD"
}).then(function (data) {
    console.debug("Withdrawal notification interface result:------" + JSON.stringify(data));
});

//7. Withdrawal Cancellation
withdraw.withdrawCancel({"symbol": "VLX", "trans_id": 49560,"msg":"tesst"}).then(function (data) {
    console.debug("Withdrawal Cancellation Result:------" + JSON.stringify(data));
});