Skip to content

Instantly share code, notes, and snippets.

@SpendBCH
SpendBCH / wif2address.js
Created September 27, 2019 20:10
compressed wif to cash address with slp-sdk
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)
@SpendBCH
SpendBCH / update.md
Last active June 30, 2018 09:52
BCH stress test example to create many tx before broadcasting them all at once