DefichainExtractPrivateKeys
Extracts private keys from lightwallet mnemonic seed
Install / Use
/learn @eric-volz/DefichainExtractPrivateKeysREADME
Defichain Extract Private Keys
Introduction
This is a small script with which you can extract the private keys of your addresses from the mnemonic seed of the defichain lightwallet.
It uses the official libraries of the defichain developers to calculate the private keys.
This script aims to give everyone the possibility to extract their private keys from lightwallet without having to deal with these complex typescript libraries.
What you need
-
You should preferably install the latest version of NodeJs
-
Be able to clone a git repository
How to use it
-
Install NodeJs
-
Clone this Git repository
git clone https://github.com/eric-volz/DefichainExtractPrivateKeys.git -
Open the cloned repository and install the required dependencies
cd DefichainExtractPrivateKeys npm install # installs all required dependencies witch are listed in package.json -
Run the script
Easy way: Run the precompiled version of the script
node index.js # runs the scriptMore complex: Compile the Code yourself and run it: index.ts
npx tsc # compiles typescript code to javascript code: index.ts to index.js node index.js # runs the script -
Follow the steps in your console: You can see an example below
Example

What you can do with the keys
-
import the private key into your defichain full node and control your lightwallet address via the full node
defi-cli importprivkey L5njaFbrQ4nu7ao7a3ocrcrT3n5PnyiftHEY8A31HLDY3CY7d6cb # private key is not valid
Disclaimer
Be careful when using this script. If your computer is compromised, disclosing the private keys could lead to a total loss of your coins.
I am still a beginner when it comes to TypeScript and JavaScript. If you want to improve or fix something, feel free to open a pull request or an issue.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
109.5kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
100.3kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
