Bulk renewal script for domains stored on ledger
Go to file
2024-09-14 17:42:42 +10:00
assets feat: Add screenshot to readme 2024-09-14 17:42:42 +10:00
.env.example feat: Add renewal script 2024-09-14 17:29:19 +10:00
.gitignore feat: Add renewal script 2024-09-14 17:29:19 +10:00
LICENSE.md Initial commit 2024-03-22 12:13:52 +11:00
README.md feat: Add screenshot to readme 2024-09-14 17:42:42 +10:00
renew.py feat: Add renewal script 2024-09-14 17:29:19 +10:00
requirements.txt feat: Add renewal script 2024-09-14 17:29:19 +10:00

Renew All Domains in Bob or HSD

Make sure you have these installed:

Clone this repository:

git clone https://git.woodburn.au/nathanwoodburn/renew-all.git
cd renew-all

Install hsd-ledger package in the repository:

git clone https://github.com/Nathanwoodburn/hsd-ledger.git
cd hsd-ledger
npm install

Make sure HSD or Bob is running. Copy .env.example to .env and fill in the details.

Run the script:

python3 -m pip install -r requirements.txt
python3 renew.py

ENV Variables

HSD and wallet variables are required.

API_KEY=hsd-api-key
ACCOUNT=wallet-name
PASSWORD=wallet-password

Renewal types

There are 2 types of renewals, expiring and all.

Expiring

This will renew all domains that are expiring within the next X days.

RENEW_TYPE=expiring
RENEW_DAYS=365

All

This will renew all domains in the wallet.

RENEW_TYPE=all

Screenshots

Screenshot