Bitcoin Forum
May 05, 2024, 12:23:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to construct transactions starting with bech32 addresses?  (Read 166 times)
flexiroute (OP)
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?
1714911784
Hero Member
*
Offline Offline

Posts: 1714911784

View Profile Personal Message (Offline)

Ignore
1714911784
Reply with quote  #2

1714911784
Report to moderator
1714911784
Hero Member
*
Offline Offline

Posts: 1714911784

View Profile Personal Message (Offline)

Ignore
1714911784
Reply with quote  #2

1714911784
Report to moderator
1714911784
Hero Member
*
Offline Offline

Posts: 1714911784

View Profile Personal Message (Offline)

Ignore
1714911784
Reply with quote  #2

1714911784
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


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: 322
Merit: 363

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 (OP)
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!