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
1 vote
2 answers
1k views

Convert plaintext script into hex-encoded script in python

I'm creating a program (for an altcoin I'm developing) that should make it easy to create OP_RETURN transactions. Currently I'm having some trouble with actually creating the script pythonically (I ...
0 votes
1 answer
415 views

Get OP_RETURN from bitcoin-cli

Is there a way to extract old OP_RETURN transactions from the commandline with bitcoin-cli or something? Something in the way of getAllOpRetFromBlock(345345) ...
  • 115
3 votes
1 answer
544 views

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

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 ...
  • 4,892
2 votes
1 answer
945 views

creating OP_RETURN script on bitcoin core console. i.e. with the help of commands

I want to create a OP_RETURN script on bitcoin core console. Not using GUI, i.e. available on proofofexistence.com , Just as we create raw transaction and then sign it and then broadcast it, I am ...
2 votes
1 answer
505 views

Segwit: Arbitrary data storage in witness?

Let's say I want to encode the text of the King James version of the Bible into the block chain, one piece at a time (replace this with any zany idea to consume copious quantities of block space). ...
  • 2,276
0 votes
1 answer
147 views

Is it feasible to store information in the Bitcoin system?

I see that some new services are based on the possibility of storing information in the bitcoin system. For example, you can use it to store an encrypted file with a blueprint of an invention. Is ...
0 votes
1 answer
209 views

Thin Client and OP_RETURN

I'd like to better understand how a light client works. As far as I know, a light client stores locally only the block headers (80 bytes each) and it receives a new block header on average each 10 ...
  • 5
3 votes
2 answers
504 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
1 answer
573 views

What is the 6a[...] hash in OP_RETURN transactions?

I've been looking up OP_RETURN transactions on http://coinsecrets.org/ and I noticed that they all contain hashes that start with 6a, for instance: ...
  • 113
0 votes
1 answer
1k views

Why OP_RETURN should be used instead of raw data?

I've read this great Explanation of what an OP_RETURN transaction looks like and now I have only one question. Imagine that someone want to store some data in Bitcoin's blockchain. Why should he use ...
2 votes
1 answer
812 views

What was the very initial value of OP_RETURN?

My understanding is that OP_RETURN was first introduced in v0.9.0 (https://bitcoin.org/en/release/v0.9.0). This link (https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2014-November/006917.html)...
1 vote
1 answer
150 views

OP_RETURN malleability?

Can anyone alter the data after OP_return? My question needs to have more characters, so I insert an example, that doesn't hurt: "vout" : [ { "value" : 0.00000000, "n" : 0, ...
  • 788
4 votes
1 answer
899 views

Do OP_RETURN messages persist on the blockchain?

I've been doing a lot of reading on OP_RETURN, and I want to understand something that still seems unclear. When we create a transaction with OP_RETURN (which I understand will not eternally pollute ...
  • 143
3 votes
1 answer
741 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 ...
  • 217
1 vote
1 answer
138 views

Do I need a full node to perform OP_RETURN transactions?

I want to build a services that allows people to perform OP_RETURN for proof of existence. Do I need to run a full node to do this (then e.g. using the OP_RETURN PHP scripts from https://github.com/...
  • 13
1 vote
2 answers
371 views

Is OP_RETURN combined with a hash, appropriate for proof of existence of an asset?

I want to store a hash (of a tweet) in a way that is : Censorship proof Public Unchangeable Persistent Non centralized Less expensive as possible, obviously free if possible Technology offered by ...
  • 111
1 vote
1 answer
204 views

Zero-BTC transaction fees, service-specific mining pools and external compensation

Bitcoin is a network that is proven to be stable, but if you want applications on top of Blockchains you have to play by the rules of the system. For notary use cases (for example), where you would ...
  • 313
0 votes
1 answer
108 views

error durring the bitcoincore installation

I want to use python-OP_RETURN library. For this I need to install bitcoin core. But when I exceute this command sudo apt-get update I have this error : Err http://ppa.launchpad.net jessie/main ...
  • 111
1 vote
1 answer
3k views

Install bitcoin core on debian jessie error

I have to install bitcoin core to use op_return library. But I have difficulties to install correctly bitcoin core. First I run the command sudo apt-add-repository ppa:bitcoin/bitcoin Second I ...
  • 111
4 votes
1 answer
142 views

Does any current SegWit or blocksize increase proposal also seek an increase in the OP_RETURN byte limit?

Does any current SegWit or blocksize increase proposal also seek an increase in the OP_RETURN byte limit? https://en.bitcoin.it/wiki/OP_RETURN Are there any current pull requests that seek an ...
1 vote
3 answers
216 views

Accessing Testnet [duplicate]

Can i access the testnet without downloading the blockchain? im developing a software to do a testnet (later it will be in mainnet) transaction with a custom message embedded into OP_RETURN. if the ...
  • 43
2 votes
1 answer
594 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 ...
  • 43
4 votes
1 answer
667 views

Transaction with `OP_RETURN` to a particular address

How do I formulate a transaction with OP_RETURN to a particular address using the bitcoinj library? SendRequest req; Transaction transaction = new Transaction(Main.getNetWorkParameters()); ...
  • 758
2 votes
1 answer
218 views

Question regarding the number of bytes in an OP_RETURN transaction

I was reading this very useful explanation of what an OP_RETURN transaction looks like and got tripped up by part of it. "hex" : "6a13636861726c6579206c6f766573206865696469" This first ...
6 votes
1 answer
2k views

Testnet: mandatory-script-verify-flag-failed when doing OP_RETURN

For some reason I keep getting error: {"code":-25,"message":"Missing inputs"} EDIT: Updating error now that the full testnet blockchain is downloaded "code":-26,"message":"16: mandatory-script-...
5 votes
3 answers
665 views

What would happen if there are more blockchain imitators like Factom?

I was referring to this question. Apparently Factom creates its own "chain" for timestamping purposes, "hashes" the entries, and then stores these hashes on the blockchain, to create an unalterable ...
  • 464
0 votes
1 answer
159 views

How to read the asset quantity list of open asset protocol?

I'm studying open asset protocol, however I have no idea how to read asset quantity list. The Open Assets Protocol documentation tells that data in marker output 0xac 0x02 0x00 0xe5 0x8e 0x26 ...
  • 251
3 votes
1 answer
549 views

'The node is not in a connected state' error when trying to execute OP_RETURN transaction with NBitcoin

This is my first time trying out the NBitcoin library to create a transaction. I am trying to create an OP_RETURN transaction, but every time I try to execute the Version Handshake with the node I get ...
  • 91
2 votes
2 answers
395 views

Where is the code making OP_RETURN a standard transaction type?

I am looking through the bitcoin github history. I am trying to find the commit where OP_RETURN became accepted as a standard tx. This was included in the changelog for Bitcoin Core 0.90. Any help ...
4 votes
2 answers
234 views

When can I send 80 byte OP_Returns?

I heard bitcoin-core 0.11 allows 80 byte OP_Returns, but I know miners operate different implementations and was wondering when it would be likely that 80 byte OP_Returns will be swiftly included in ...
1 vote
2 answers
703 views

Broadcasting an OP_RETURN transaction

I am facing two problems below, First is that I am trying to broadcast transaction which have OP_RETURN but blockchain.info continuously rejecting it, though I have broadcast it using bitcoind. ...
3 votes
1 answer
411 views

Does an OP_RETURN script always need another output within the transaction?

I was reading this: Explanation of what an OP_RETURN transaction looks like and I wondered if the second output "value" : 0.00200000, was at all necessary. Can I just have a OP_RETURN with a 0 output ...
1 vote
1 answer
427 views

None Standard Script Output OP_RETURN

I'm trying to push 'hello world' in an op_return tx via blockchain.info and keep getting None Standard Script Output OP_RETURN 68656c6c6f20776f726c64. Here's my script 6a0b68656c6c6f20776f726c64 It ...
  • 315
2 votes
1 answer
510 views

Do transactions with null data take longer to confirm?

I was under the impression that null-data transactions were standard, but whenever I try to broadcast one it takes a while for it to appear in a block. I tested this by broadcasting 2 transactions ...
  • 123
6 votes
1 answer
976 views

Can I have multiple OP_RETURN outputs in one transaction?

I am wondering if I can inject multiple OP_RETURN outputs in one transaction?
  • 633
1 vote
2 answers
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....
2 votes
2 answers
1k views

OP_RETURN using python

I'm trying to make a simple program that can reliably upload an OP_RETURN transaction. I have found some examples online, but so far they don't work consistently. The ones that go through seem to be ...
  • 21
2 votes
1 answer
349 views

Why am I unable to post two transactions (the second from the change address of the first) in the same block?

I'm attempting to make a transaction on the testnet with an OP_RETURN and a change address in it, and then make a second OP_RETURN transaction from first transaction's change address in the same ...
  • 89
2 votes
3 answers
5k views

How can I search for OP_RETURN data?

Is there any way to check for this data in blockchain? I want to search this value: 554e6963444320 and want to return this transaction https://blockchain.info/tx/...
5 votes
3 answers
4k views

How do I compose a transaction with OP_RETURN in Python?

Currently trying to figure out how to use Python to construct a transaction with OP_RETURN. I tried to encode the message myself, and had no luck. I found a function, OPReturn(), on the internet, but ...
  • 151
12 votes
2 answers
3k 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 ...
  • 13.9k
3 votes
4 answers
926 views

Wallets that support 40 byte message attachment via OP_RETURN? Desktop / Mobile?

I see that many new Bitcoin 2.0 apps are making use of the additional OP_RETURN parameter for attaching data. I see that max limit is 40 bytes or roughly 40 characters? My question now regarding ...
4 votes
2 answers
3k 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 ...
15 votes
1 answer
13k 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
3 answers
4k 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 ...
  • 81
64 votes
4 answers
40k views

Explanation of what an OP_RETURN transaction looks like

How is OP_RETURN used and why was it introduced in the first place?
  • 2,366
14 votes
3 answers
7k 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,"...
  • 333
11 votes
1 answer
787 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?
  • 26.4k
9 votes
2 answers
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 ...
  • 26.4k

1
2