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

11

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?

ripper234

Posted 2011-10-09T07:02:52.283

Reputation: 25 852

Answers

8

The maximum size of a block is 1MB. A block can be filled entirely with arbitrary data.

Namecoin actually puts its extra data into the "coinbase" parameter, which is specifically designed to hold arbitrary data. Data put here is limited to 100 bytes, and this data will in the future be safely forgotten by most clients.

theymos

Posted 2011-10-09T07:02:52.283

Reputation: 8 416

so how much would it cost someone to embed 1kb worth of data into the bitcoin blockchain? say i wanted to embed a js script file and then retrieve it from the browser by querying the blockchain. – Patoshi パトシ – 2014-10-31T03:00:05.347