potsweep

1.1.2 • Public • Published

PotSweep

Installation

npm install potsweep

Safe Usage

const PotSweep=require('potsweep');

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

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','PWDLuGt7dRPaAE6QQBYQmAtQBPxpghzzVN').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('potsweep');

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

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','PWDLuGt7dRPaAE6QQBYQmAtQBPxpghzzVN').then((txids)=>{
    console.log("Transaction was sent with the following txids");
    console.log(txids);
});

/potsweep/

    Package Sidebar

    Install

    npm i potsweep

    Weekly Downloads

    0

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    1.98 MB

    Total Files

    22

    Last publish

    Collaborators

    • mctrivia