Bitcoin Forum
May 03, 2024, 10:41:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How much BTC does it cost to build a transaction that only contains OP_RETURN?  (Read 175 times)
Staizita (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 4


View Profile
December 04, 2018, 09:15:23 AM
 #1

  How much BTC(at least) does it cost to build a transaction that only contains OP_RETURN(OUTPUT)?

  Is there any information about this?
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
December 04, 2018, 10:40:59 AM
Last edit: December 04, 2018, 10:54:06 AM by Coding Enthusiast
Merited by stompix (1), ABCbits (1)
 #2

Nearly the same as when you make a payment to a legacy address!

TX Size =
4 byte version
1 byte txInCount
  TxIn:
  36 byte outpoint
  1 byte scriptLength
  72 byte script
  33 byte public key
  4 byte sequence
1 byte txOutCount
  txOut:
  8 byte amount
  1 byte size of script
  1 byte OP_Return + 1 byte size of the data + (0 to 40 bytes)
4 byte locktime

Min size=167 bytes
Multiply that with fee in satoshi/byte unit and you will get how much it can cost.
If you use SegWit then you have to calculate virtual size which is 89 vbytes so it an cost even less.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
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!