hns-address/README.md

42 lines
1.0 KiB
Markdown

# hns-address
## Setup
```bash
git clone https://git.woodburn.au/nathanwoodburn/hns-address.git
cd hns-address
npm install
```
## Find an address
- `xpub`: the account extended public key
- `address`: the address to search for
- `start`: the starting index (default: 0)
- `end`: the ending index (default: 0x7fffffff)
```bash
node find-address.js --xpub your-xpub-key --address address-to-search-for
```
## Generate addresses
- `xpub`: the account extended public key
- `number`: the number of addresses to generate (default: 1000)
- `start`: the starting index (default: 0)
- `change`: toggle to display change addresses (default: false)
Generate the first 1000 addresses.
```bash
node generate-address.js --xpub your-xpub-key --number 1000
```
Generate addresses from 1000 to 1010 and display change addresses.
```bash
node generate-address.js --xpub your-xpub-key --number 10 --start 1000 --change
```
Probably best to save the output to a file.
```bash
node generate-address.js --xpub your-xpub-key > addresses.txt
```