Skip to content

Instantly share code, notes, and snippets.

@gabridome
gabridome / addressesfromhwi.sh
Last active December 29, 2021 13:52
Estract first 5 addresses from a Ledger according to BIP49 and 84. Requires HWI and pycoin
#!/bin/sh
##
## This script will extract the first 5 normal addresses and the first 5 change addresses
## from a ledger nano S (not tested but should work with any supported hardware wallets)
## To have more addresses it is sufficient to change the
## `ku -j -s0/0-5`part as desired. So if someone wants 100 addresses after the 20th,
## that part will be `ku -j -s0/20-119`.
## Use at your own risk and check few addresses with other applications.
##