1.1.6 • Published 3 years ago

digisweep2 v1.1.6

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

DigiSweep

Installation

npm install digisweep2

Safe Usage

const DigiSweep=require('digisweep2');

const getRawTxs=async(mnemonic,coinAddress,assetAddress)=>{
    let addressData=await DigiSweep.findFunds(mnemonic);
    if (addressData.length===0) {
        return["Mnemonic was never used"];
    }
    return DigiSweep.buildTXs(addressData,coinAddress,assetAddress);
}

getRawTxs('acoustic maximum page wife amount praise guess unhappy argue rather fat minor ordinary talent distance toast earth miss fiscal shell device sure version kangaroo','DSXnZTQABeBrJEU5b2vpnysoGiiZwjKKDY','DSXnZTQABeBrJEU5b2vpnysoGiiZwjKKDY').then((commands)=>{
    console.log("Execute the following commands on a core wallet");
    console.log(commands);
    console.log("Copy the returned hex value from each command and execute")
    console.log("sendrawtransaction hexvalue");
});

Unsafe But Easy

const DigiSweep=require('digisweep2');

const sendRawTxs=async(mnemonic,coinAddress,assetAddress)=>{
    let addressData=await DigiSweep.findFunds(mnemonic);
    if (addressData.length===0) {
        return["Mnemonic was never used"];
    }
    return DigiSweep.sendTXs(addressData,coinAddress,assetAddress);
}

sendRawTxs('acoustic maximum page wife amount praise guess unhappy argue rather fat minor ordinary talent distance toast earth miss fiscal shell device sure version kangaroo','DSXnZTQABeBrJEU5b2vpnysoGiiZwjKKDY','DSXnZTQABeBrJEU5b2vpnysoGiiZwjKKDY').then((txids)=>{
    console.log("Transaction was sent with the following txids");
    console.log(txids);
});
1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago