🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

waves-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waves-nodejs

Use waves platform from nodejs

1.0.7
latest
Source
npm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

Waves Node JS API

npm version

A library to use Waves blockchain from node.js based on WavesDevKit

Getting started

npm install waves-nodejs --save

REST Methods

Send asset transaction to a node

var Waves = require('waves-nodejs');

Waves.api.sendAsset(
    'nodeUrl',
    'assetId', 
    'seed', 
    'recipient address', 
    1, // amount
    1, // fee
    'feeAssetId',
    'attachment'
).then(function(data) {
    console.log(data);
}, function(err) {
    console.error(err);
});

API Methods

var Waves = require('waves-nodejs');

Waves.getPublicKey(secretPhrase);

Waves.getPrivateKey(secretPhrase);

Waves.appendUint8Arrays(array1, array2);

Waves.appendNonce(originalSeed);

Waves.keccakHash(messageBytes);

Waves.blake2bHash(messageBytes);

Waves.hashChain(noncedSecretPhraseBytes);

Waves.sign(privateKey, dataToSign);

Waves.buildAccountSeedHash(seedBytes);

Waves.buildPublicKey(seedBytes);

Waves.buildPrivateKey(seedBytes);

Waves.shortToByteArray(value);

Waves.byteArrayWithSize(byteArray);

Waves.base58StringToByteArray(base58String);

Waves.longToByteArray(value);

Waves.signatureAssetData(senderPublicKey, assetId, feeAssetId, timestamp, amount, fee, recipient, attachment);

Waves.generateSeed();

TODO

Add all REST API methods

Keywords

waves

FAQs

Package last updated on 25 Sep 2018

Did you know?

Socket

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.

Install

Related posts