bcoin-org / bcoin

Javascript bitcoin library for node.js and browsers
https://bcoin.io
Other
2.97k stars 809 forks source link

Create segwit address and send coins to self #306

Closed digitalgoodsprovider closed 6 years ago

digitalgoodsprovider commented 6 years ago

The doc example is missing. The only library so far with an example is bitcoinjs can you make an example as it will lead to the bitcoin network seeing the benefit

generate a SegWit address: https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/addresses.js#L60

create and broadcast a Transaction with a SegWit: https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/transactions.js#L155

bucko13 commented 6 years ago

This issue is a little old but we should have a segwit guide in the works and up on the site in the next week or two. Sorry for the delay!

For the growing list of guides, keep an eye on this page: http://bcoin.io/guides.html

bucko13 commented 6 years ago

Segwit guide has now been published on bcoin.io: http://bcoin.io/guides/segwit.html