A library to use Waves blockchain from node.js based on WavesDevKit
npm install waves-nodejs --save
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);
});
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();
Add all REST API methods