Questions tagged [op-return]

An opcode that allows you to create an unspendable transaction output that stores up to 80 bytes of data.

Filter by
Sorted by
Tagged with
46
votes
2answers
23k views

Explanation of what an OP_RETURN transaction looks like

How is OP_RETURN used and why was it introduced in the first place?
7
votes
3answers
5k views

What is a step by step way to insert data in OP_RETURN?

I was following https://bitcointalk.org/index.php?topic=453086.0 for creating a message in OP_RETURN. I am able to decode my raw transaction, but on signrawtransaction it gives error: {"code":-22,"...
4
votes
2answers
2k views

Insert data to transaction with OP_RETURN

This might be a possible duplicate with this. I want to know a proper way to insert additional string with OP_RETURN and retrieve the transaction from block chain and decode it accordingly. Thank ...
2
votes
1answer
454 views

OP_RETURN in a coinbase transaction?

Hey looking at this transaction I'm confused why there are two outputs and why one of them is labelled with OP_RETURN
2
votes
1answer
930 views

OP_RETURN max bytes clarification

I've read that an OP_RETURN opcode allows up to 80 arbitrary bytes to be used in an unspendable transaction. My question is, how is it possible that in this famous transaction (...
1
vote
1answer
381 views

OP_RETURN custom message in testnet transaction

I would like to do a bitcoin transaction in testnet by embedding a custom message in the OP_RETURN. do i have to download the bitcoin core client with and the block chain to do that? or can i use a ...
1
vote
2answers
2k views

Alternatives to OP_RETURN to store data in Bitcoin blockchain

I am working on iOS camera app and would like to store hash of photos inside blockchain for the "proof of existence". AFAIK transaction with OP_RETURN in output has some disadvantages non-refundable....
13
votes
1answer
9k views

How to add additional information to transaction?

I want to add some additional information to my specific transaction, so that I can send the additional information to blockchain.
2
votes
2answers
3k views

Create OP_RETURN tx with Bitcoinjs-lib

I know how to create a basic TX: var bitcoin = require('bitcoinjs-lib') var tx = new bitcoin.Transaction() // Add the input (who is paying) of the form [previous transaction hash, index of the ...
11
votes
1answer
750 views

Is there a limit to how much extra data can be put into blocks via scripts?

According to this answer, miners can include extra data in blocks. Is there an upper bound to how much a miner can add? How much?
9
votes
2answers
1k views

Does encoding Namecoin/messages into the blockchain bloat it?

I read today twice concerns about inflating the blockchain: NameCoin Bitcoin Message Service So, does using these services "over inflate" the blockchain? The way I see it, if another protocl rides ...
8
votes
2answers
2k views

Is there a maximum size of a scriptSig/scriptPubKey?

Previous research: Transaction's maximum size What is the maximum size of a transaction? The maximum size of a standard transaction is 100k bytes. Are there any consensus rules that prohibit ...
3
votes
1answer
422 views

OP_RETURN marks transaction or output as invalid

I am currently looking into the Bitcoin script. I want to create a transaction with one output with OP_RETURN and some data, and one output which pays coins to some address. I am confused, does ...
3
votes
2answers
377 views

Colored coin adds meta data to OP_RETURN. Why isn't this frowned upon?

It seems that adding data to OP_RETURN is frowned upon and considered as bloating the blockchain. Blockchain.info wallet also had a short stint where users could include data into the OP_RETURN ...
1
vote
1answer
90 views

In the bitcoin scripting language, how can I access other outputs of the transaction? Or how else can I limit how the coins may be spent?

Is there any way to add an opcode to a UTXO that prevents how the coins are spent? For example, in order to to spend the output, a person must send X number of bitcoin to Y address within the ...