2025-01-26 12:14:22 +11:00
|
|
|
# hns-address
|
|
|
|
|
2025-01-27 18:23:04 +11:00
|
|
|
## Setup
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://git.woodburn.au/nathanwoodburn/hns-address.git
|
|
|
|
cd hns-address
|
|
|
|
npm install hsd
|
|
|
|
```
|
|
|
|
|
|
|
|
## Find an address
|
|
|
|
|
|
|
|
Edit `find-address.js` and fill in these fields:
|
|
|
|
|
|
|
|
- `ACCOUNT_XPUB`: the account extended public key
|
|
|
|
- `SEARCH_ADDRESS`: the address to search for
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
node find-address.js
|
|
|
|
```
|
|
|
|
|
|
|
|
## Generate addresses
|
|
|
|
|
|
|
|
Edit `generate-address.js` and fill in these fields:
|
|
|
|
|
|
|
|
- `ACCOUNT_XPUB`: the account extended public key
|
|
|
|
- `START`: the starting index
|
|
|
|
- `END`: the ending index
|
|
|
|
|
|
|
|
```bash
|
|
|
|
node generate-address.js
|
|
|
|
```
|
|
|
|
Probably best to save the output to a file.
|
|
|
|
```bash
|
|
|
|
node generate-address.js > addresses.txt
|
|
|
|
```
|