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

<p>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.</p>

CC BY-SA 3.0
2014-10-31T03:00:05.347Z
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 パトシ
CC BY-SA 3.0
2011-10-09T08:13:47.840Z
2011-10-09T08:13:47.840Z
theymos
<p>According to <a href="https://bitcoin.stackexchange.com/questions/1431/does-encoding-namecoin-messages-into-the-blockchain-bloat-it/1436#1436">this answer</a>, miners can include extra data in blocks.</p>

<p>Is there an upper bound to how much a miner can add? How much? </p>

<blockchain><protocol><coinbase-transaction><op-return>
Is there a limit to how much extra data can be put into blocks via scripts?
ripper234
# Is there a limit to how much extra data can be put into blocks via scripts?

(Asked by: username_0 on 2011-10-09)

According to [this answer](https://bitcoin.stackexchange.com/questions/1431/does-encoding-namecoin-messages-into-the-blockchain-bloat-it/1436#1436), miners can include extra data in blocks.

Is there an upper bound to how much a miner can add? How much?

**Tags:** blockchain, protocol, coinbase-transaction, op-return


---

## 1 answers

### Answer by username_1 on 2011-10-09. Score: 8 | Accepted answer

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.

> **Comments:**
> **username_2**: 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.  

---

