Created
September 27, 2019 20:10
-
-
Save SpendBCH/788bcce8413206ac253f7f6e83889e71 to your computer and use it in GitHub Desktop.
compressed wif to cash address with slp-sdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SLPSDK = require('slp-sdk') | |
const SLP = new SLPSDK() | |
const compressedWif = '' | |
let ecPair = SLP.ECPair.fromWIF(compressedWif) | |
let cashAddress = SLP.ECPair.toCashAddress(ecPair) | |
console.log(cashAddress) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment