Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: JPage on April 09, 2016, 05:05:36 PM



Title: No outputs
Post by: JPage on April 09, 2016, 05:05:36 PM
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.


Title: Re: No outputs
Post by: achow101 on April 09, 2016, 05:19:49 PM
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.


Title: Re: No outputs
Post by: CIYAM on April 09, 2016, 05:21:38 PM
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?)


Title: Re: No outputs
Post by: achow101 on April 09, 2016, 05:25:25 PM
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.


Title: Re: No outputs
Post by: amaclin on April 09, 2016, 05:39:23 PM
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


Title: Re: No outputs
Post by: JPage on April 09, 2016, 06:43:02 PM
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,....  ?


Title: Re: No outputs
Post by: achow101 on April 09, 2016, 06:45:01 PM
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.


Title: Re: No outputs
Post by: amaclin on April 09, 2016, 07:16:15 PM
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