Can a transaction have a single 0-value OP_RETURN as its only output?

2

My goal is to create a transaction that spends dust outputs to a miner. Since the goal is to reduce the UTXO set by consuming low value outputs, I do not want to create any new UTXO by actually sending Bitcoin to an address.

Is it valid to make a transaction with several inputs and only one single, zero value prunable OP RETURN output?

pinhead

Posted 2017-07-25T15:54:45.690

Reputation: 2 356

there are ~50 million UTXO. your efforts are teardrop in oceanamaclin 2017-07-25T20:16:48.980

It's a technical question not a charity proposal. But consider all those useless UTXOs produced by Counterparty. A large scale clean up could be effectivepinhead 2017-07-25T20:18:30.890

Services like http://www.cryptograffiti.info/ encode arbitrary data in unspent outputs every single day.

amaclin 2017-07-25T21:22:47.310

Answers

4

Yes. Such transactions are valid and standard.

Andrew Chow

Posted 2017-07-25T15:54:45.690

Reputation: 40 910