bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.69k stars 2.11k forks source link

Cant add ltc segwit output #1644

Closed harusurv closed 4 years ago

harusurv commented 4 years ago

I can't use segwit ltc outputs, is there any plan on supporting it?

junderw commented 4 years ago

segwit LTC outputs are supported.

Please show your code, show your errors etc.

junderw commented 4 years ago

Examples: https://github.com/bitcoinjs/bitcoinjs-lib/blob/533d6c2e6d0aa4111f7948b1c12003cf6ef83137/test/integration/transactions.spec.ts

Just replace the regtest network object with the following object:

const litecoin = require('coininfo').litecoin.main.toBitcoinJS()
harusurv commented 4 years ago

You are right, i used that object as network and it worked perfectly. Thank you so much!