Bitcoin Forum
December 14, 2024, 05:23:32 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: No outputs  (Read 935 times)
JPage (OP)
Full Member
***
Offline Offline

Activity: 399
Merit: 105



View Profile
April 09, 2016, 05:05:36 PM
Merited by ABCbits (1)
 #1

Is it possible to form a valid transaction that gets into the blockchain that has no outputs.  I.e. all of the inputs go to fees.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
April 09, 2016, 05:19:49 PM
 #2

Is it possible to form a valid transaction that gets into the blockchain that has no outputs.  I.e. all of the inputs go to fees.
No. You cannot have no outputs, however you can have an output with a zero amount so that all the Bitcoin still goes to fees.

CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
April 09, 2016, 05:21:38 PM
Merited by ABCbits (1)
 #3

No. You cannot have no outputs, however you can have an output with a zero amount so that all the Bitcoin still goes to fees.

Is such a tx "standard"?

(i.e. would normal nodes propagate it?)

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
April 09, 2016, 05:25:25 PM
 #4

No. You cannot have no outputs, however you can have an output with a zero amount so that all the Bitcoin still goes to fees.

Is such a tx "standard"?

(i.e. would normal nodes propagate it?)

If you use OP_RETURN I think it will be standard.

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
April 09, 2016, 05:39:23 PM
 #5

If you use OP_RETURN I think it will be standard.
OP_RETURN (one per tx) is standard output
tx example:
https://blockchain.info/tx/8ddc09e3986cb6e267d35e814c3e0fb05d68dd08a560fa18759ef58b2a72ef44
JPage (OP)
Full Member
***
Offline Offline

Activity: 399
Merit: 105



View Profile
April 09, 2016, 06:43:02 PM
 #6

If you use OP_RETURN I think it will be standard.
OP_RETURN (one per tx) is standard output
tx example:
https://blockchain.info/tx/8ddc09e3986cb6e267d35e814c3e0fb05d68dd08a560fa18759ef58b2a72ef44

Thanks amalcin.  That is a very good example of what I am talking about. 
But could you ever get an transaction accepted with , "out":[], "lock_time";0,....  ?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
April 09, 2016, 06:45:01 PM
 #7

If you use OP_RETURN I think it will be standard.
OP_RETURN (one per tx) is standard output
tx example:
https://blockchain.info/tx/8ddc09e3986cb6e267d35e814c3e0fb05d68dd08a560fa18759ef58b2a72ef44

Thanks amalcin.  That is a very good example of what I am talking about. 
But could you ever get an transaction accepted with , "out":[], "lock_time";0,....  ?
No.

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
April 09, 2016, 07:16:15 PM
 #8

Thanks amalcin.  That is a very good example of what I am talking about.  
But could you ever get an transaction accepted with , "out":[], "lock_time";0,....  ?
Such "transaction" can be created.
But it can not be confirmed or even relayed under the current consensus rules.

The transaction without inputs and outputs:
Code:
01000000000000000000

Decoded:
Code:
{
   "lock_time":0,
   "size":10,
   "inputs":[
      
   ],
   "version":1,
   "vin_sz":0,
   "hash":"d21633ba23f70118185227be58a63527675641ad37967e2aa461559f577aec43",
   "vout_sz":0,
   "out":[
      
   ]
}

for more information:
http://google.com/search?q=d21633ba23f70118185227be58a63527675641ad37967e2aa461559f577aec43
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!