https://github.com/exodusmovement/xpub-converter
https://github.com/exodusmovement/xpub-converter
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/exodusmovement/xpub-converter
- Owner: ExodusMovement
- License: mit
- Created: 2020-08-06T02:10:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-16T13:20:37.000Z (almost 2 years ago)
- Last Synced: 2025-05-07T00:23:09.019Z (about 1 year ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 16
- Watchers: 21
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xpub-converter
This is based off of work done by Jameson Lopp here: https://github.com/jlopp/xpub-converter `index.js` is adapted from https://github.com/jlopp/xpub-converter/blob/40765efc6793ecfba3a8b2771ba66eecbfd58147/js/xpubConvert.js
## Usage
```js
const xpubConverter = require('xpub-converter')
const xpub =
'xpub6D4KjGHFvbCy6Tb46PAnx2ZqzTjAU3mcNWxDHaMKTguY2aANe9jb3KLvF6Yo1bFN241mrezpTDCv5VECoUeFHr3SUoKeLb6VjoKRSQHjS6F'
xpubConverter(xpub, 'zpub')
// -> "zpub6rirLbd6DxHvo3yHm6k3NCkrLQ24MHkcCjzerN96DhfJ8mnq9U4iHSfCHWTy1QZCqLFPMcBwNXv1r4TLEsUGtKQeDUiVWQjUHFSiDajxURU"
```