# digisweep2

> Allows easy recovery of DigiByte coins and assets

Latest version **1.1.6** (published 2021-05-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install digisweep2
pnpm add digisweep2
yarn add digisweep2
bun add digisweep2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2021-05-21 |
| First published | 2020-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 29.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Matthew Cornelisse |
| Maintainers | mctrivia |

## Links

- npm: https://www.npmjs.com/package/digisweep2
- Repository: https://github.com/digiassetX/digisweep
- Homepage: https://github.com/digiassetX/digisweep#readme
- Issues: https://github.com/digiassetX/digisweep/issues
- npm.io page: https://npm.io/package/digisweep2

## Dependencies (3)

- [bip39](https://npm.io/package/bip39.md) ^3.0.3
- [digibyte](https://npm.io/package/digibyte.md) ^0.15.8
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Recent versions

- 1.1.6 (latest) — 2021-05-21
- 1.1.5 — 2021-03-18
- 1.1.4 — 2021-03-17
- 1.1.3 — 2021-02-14
- 1.1.2 — 2021-02-14
- 1.1.1 — 2021-01-01
- 1.1.0 — 2020-12-29
- 1.0.10 — 2020-12-27
- 1.0.9 — 2020-12-13
- 1.0.8 — 2020-12-05
- 1.0.7 — 2020-11-30
- 1.0.6 — 2020-11-30
- 1.0.5 — 2020-11-30
- 1.0.4 — 2020-11-30
- 1.0.3 — 2020-11-29
- … 3 more at https://npm.io/package/digisweep2/versions

## README

# DigiSweep

## Installation
``` bash
npm install digisweep2
```

## Safe Usage
``` javascript
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
``` javascript
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);
});
```

---
_Source: https://npm.io/package/digisweep2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
