Bitcoin Forum
January 21, 2019, 09:26:27 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to construct transactions starting with bech32 addresses?  (Read 51 times)
flexiroute
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 11, 2018, 08:54:53 PM
 #1

Today I was just browsing coinsecrets.org and I came up with these
https://blockchain.info/tx/82545e2be329109eabf4ebf93362e20f88beb0b29f14f7657fde3f95091bf6a2
In these transaction I saw addresses starting with'bc1q' these type of transaction is strange to me . will anyone teach me how do I create these type of transactions step by step?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1652
Merit: 1982


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


View Profile WWW
January 11, 2018, 11:21:27 PM
 #2

Read BIPs 173: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki and 141: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki

Xynerise
Sr. Member
****
Offline Offline

Activity: 280
Merit: 282

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
January 11, 2018, 11:23:24 PM
 #3

Today I was just browsing coinsecrets.org and I came up with these
https://blockchain.info/tx/82545e2be329109eabf4ebf93362e20f88beb0b29f14f7657fde3f95091bf6a2
In these transaction I saw addresses starting with'bc1q' these type of transaction is strange to me . will anyone teach me how do I create these type of transactions step by step?
Those a Bech32 segwit addresses defined in BIP 173 by Peter Wuille
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

With bc1 addresses your transactions are 38% smaller than that of legacy transactions of the same input/output.
Eg for 1 input and 2 outputs, a legacy (address starts with 1) transaction is 226 bytes, but a Bech32 transaction is just 141vbytes.

Right now only Electrum supports the creation of wallets with this address type (select "native segwit" when you're setting up)
Also, it's not backwards compatible, meaning wallets without segwit support won't be able to send funds to this type of address.
flexiroute
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 12, 2018, 04:35:30 AM
 #4

Thanks for the reply bro but I just wanted to know how to create op_return transaction with bech32 addresses.
Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!