--[0x00]--[readme]
hashblcks is one ERC-721 collection that grows like a chain: every block is issued at the tip, one after another, by one of two routes.
Every purchase from the curve is split the moment it lands: 65% to the holders of bought blocks, 15% to the holders of mined blocks, 20% to the author. Mining moves no ETH. Trades on the market pay a 5% royalty to the author.
The scene is where you mine, buy and claim; this page is where the rules live. After deploy nobody can change them, because nobody owns the contract (0x08).
--[0x01]--[the block]
There are 10,000 blocks, #0000 to #9999. The depth n is how many are out, by either route. The next block is #n.
+------+ +------+ +------+ +------+ +------+ +------+ | 0000 |===| 0001 |===| 0002 |===| 0003 |== .. ==| n-1 |===| n | | POW | | POW | | BUY | | POW | | BUY | | ? | +------+ +------+ +------+ +------+ +------+ +------+ mine it or buy it
+------+ +------+ +------+ +------+ | 0000 |===| 0001 |== .. ==| n-1 |===| n | | POW | | BUY | | BUY | | ? | +------+ +------+ +------+ +------+ mine it or buy it
- Two routes, one tip. #n can be mined or bought. Whichever transaction lands first takes it; the other route moves on to #n+1.
- A chain. Each block's hash covers the hash of the block before it (0x02).
- What a block carries: its id, its route (POW or BUY), its hash, the work it took if mined, its weight in the pool (x1, x2, x5 or x25, 0x05) and its own pool balance (0x04).
- Batches. Buy up to 100 blocks in one transaction (x1, x10, x100 on the scene).
- Mint-out. After #9999 nothing more is mined or bought. The pool stops filling, whatever sits on the blocks stays claimable, trading goes on.
--[0x02]--[the work]
A mined block is a nonce that makes this hash small enough:
Your address is inside the hash, so a nonce copied from someone else's transaction is worth nothing to the copier. A proof is good for one tip: if another block lands first, your transaction reverts (you lose its gas) and the miner goes on from the new tip. No progress is lost, since every try is a fresh ticket. Block #0000 builds on the hash of the deploy block, which exists only once that block has closed: nothing can be mined or bought ahead of it, not even by whoever deploys.
The work bits(n) runs through four points, straight in bits between them:
2^44 + ****** + *********** + *********** 2^38 + #***** + #| + #|| + #||| + #|||| 2^29 + .....||||| + .....:::::||||| + .....::::::::::||||| 2^22 +...:::::::::::::::||||| +-------------------------------------------------------- 0 3100 4000 9999 depth n . phones # the wall * GPUs
| block | work | phone | laptop | RTX 4090 |
|---|---|---|---|---|
| #0000 | 2^22.0 | 2 s | <1 s | <1 s |
| #1000 | 2^24.2 | 10 s | 3 s | <1 s |
| #2000 | 2^26.4 | 44 s | 15 s | <1 s |
| #3000 | 2^28.6 | 3 min | 68 s | <1 s |
| #3100 | 2^28.8 | 4 min | 79 s | <1 s |
| #3300 | 2^30.9 | 16 min | 5 min | <1 s |
| #3500 | 2^32.9 | 67 min | 22 min | 3 s |
| #4000 | 2^38.0 | 38 h | 13 h | 2 min |
| #5000 | 2^39.0 | 3 days | 25 h | 3 min |
| #7000 | 2^41.0 | 13 days | 4 days | 12 min |
| #9999 | 2^44.0 | 102 days | 34 days | 1.6 h |
A phone in the browser at 2 MH/s, a laptop on WASM at 6 MH/s, one RTX 4090 at 3 GH/s.
- Phones first. Up to #3100 a phone in the browser mines a block in seconds to minutes. At the open the scene's miner runs on WASM only, so no desktop gets a GPU in the browser. The author publishes no GPU miner.
- The wall. From #3100 to #4000 the work climbs 2^9 in 900 blocks. A phone that mined #3000 in three minutes would need 38 hours for #4000. Past this point a phone waits for hours, and the curve is one click away.
- After the wall. The last blocks take one RTX 4090 about 1.6 hours and some $0.06 of power each. The whole collection is 2.5·1016 hashes, about 97 days of one RTX 4090.
- Free. Mining sends no ETH to the contract. You pay the gas of one transaction.
--[0x03]--[the price]
The price follows the depth, and the depth counts both routes: every mined block makes the next purchase dearer. It doubles every 2048 blocks, from Ξ0.001 to Ξ0.0295 for #9999.
0.0295 + *** + ******. . 0.016 + ***** . . . . + ****** . . . . . . . 0.008 + *****. . . . . . . . . . + ******. . . . . . . . . . . . . 0.004 + ***** . . . . . . . . . . . . . . . + ****** . . . . . . . . . . . . . . . . . . 0.002 + *****. . . . . . . . . . . . . . . . . . . . . + ******. . . . . . . . . . . . . . . . . . . . . . . . 0.001 +*** . . . . . . . . . . . . . . . . . . . . . . . . . . +-------------------------------------------------------- 0 2048 4096 6144 8192 9999 depth n ETH per block, doubling every 2048
| block | Ξ | $ at ETH = $2,689 |
|---|---|---|
| genesis hour | 0.00100 | $2.69 |
| #1000 | 0.00140 | $3.77 |
| #2048 | 0.00200 | $5.38 |
| #3100 | 0.00286 | $7.68 |
| #4000 | 0.00387 | $10.41 |
| #4096 | 0.00400 | $10.76 |
| #6144 | 0.00800 | $21.51 |
| #8192 | 0.01600 | $43.02 |
| #9999 | 0.02949 | $79.31 |
- The genesis hour. The open is the deploy block. For 60 minutes after it every block from the curve costs Ξ0.001, whatever the depth. At 60:00 the price jumps to the curve at the depth reached: at #3000 the next block costs Ξ0.00276. The scene counts down to it.
- Batches. The blocks of a batch are charged one by one, each at its own depth, so after the genesis hour the price climbs inside the batch: x100 costs about 1.7% more than 100 times the first block. Send what the scene quotes; the change comes back in the same transaction. If the depth moved past what you sent, the transaction reverts and you lose only gas.
- The curve only sells. There is no buyback. You sell a block on the market (0x07).
--[0x04]--[the pool]
buy #n for Ξ p | +-------------------+-------------------+ | | | 65% p 15% p 20% p | | | [ BUY vault ] [ POW vault ] [ author ] every bought every mined treasury fixed block, by weight block, by weight at deploy
buy #n for Ξ p | +----------+----------+ | | | 65% p 15% p 20% p | | | [ BUY ] [ POW ] [ author ] bought mined treasury by weight by weight
Every purchase from the curve is split the moment it lands. Each vault pays by weight across the blocks of its route that exist at that moment; the block being bought joins right after.
So a plain bought block gets 0.65 / WBUY of every later purchase, a plain mined block 0.15 / WPOW:
| in the vault | 100 | 1,000 | 5,000 |
|---|---|---|---|
| bought x1 gets | 0.65% | 0.065% | 0.013% |
| mined x1 gets | 0.15% | 0.015% | 0.003% |
- The balance sits on the block, not on the wallet. Sell the block and its unclaimed balance goes with it. Claim before you list.
- Claim any time, for all your blocks in one transaction. It pays whoever holds the block.
- Early blocks split each purchase with fewer blocks, so they earn more per purchase.
- A batch is split block by block: the first blocks of your batch already earn from the later ones.
- The edge case. The very first purchase finds no bought block to pay, so its 65% goes to the author (Ξ0.00065). The same goes for the 15% of any purchase made before the first mined block exists.
- Mint-out. No more purchases, so no more pool income. Balances stay claimable forever.
- To the wei. The accumulators are fixed point. Rounding dust, a few wei, stays in the contract: the balances plus the author's share never add up to more than came in.
--[0x05]--[lucky blocks]
Every block, mined or bought, draws a weight once, from a hash nobody can see when they sign:
| r | w | odds | colour |
|---|---|---|---|
| 0 | x25 | 1 in 4096 | gold |
| 1..16 | x5 | 1 in 256 | white |
| 17..272 | x2 | 1 in 16 | cyan |
| 273..4095 | x1 | the rest | green or amber |
- Money, not just looks. The weight multiplies the block's share of its vault: a x25 bought block takes 25 shares of the 65% of every later purchase, a x25 mined block 25 shares of the 15%.
- Sealing. H does not exist yet when you sign, so you cannot pick it. The next call on the collection seals the blocks before it (a purchase does it before it splits, so a lucky block is paid by weight on that very batch), reading H from the chain's block hash history (EIP-2935, about 11 hours back), and anyone can call seal(). A block nobody sealed within that window keeps x1 for good: waiting can only lose a lucky draw, never buy a second one. In a busy sale that takes seconds; after hours of silence the scene offers the seal to the holder of a lucky block.
- Trust. Only the chain's sequencer, or someone who can predict the whole chain block their transaction lands in (a lone transaction in a quiet block), could steer H. That is the trust you already give the chain.
- Per block, not per wallet. Most mined blocks will come from GPUs, and so will most lucky mined ones.
- Over 10,000 blocks expect about 625 x2, 39 x5 and 2.4 x25; the chance of at least one x25 is 91%. The mean weight is 1.084, so a plain block gets 8% less than with no lucky blocks at all, and the lucky ones get the rest.
One roll of all 10,000 blocks with the real odds, drawn in your browser. Every cell is a block, #0000 at the top left, #9999 at the bottom right.
--[0x06]--[the art]
Each block is an ASCII cube, 80 × 48 characters, spinning in 2.5D and seen from above, one turn every 18 seconds, in front of a rain of hex. It is built from the block itself:
On chain. tokenURI returns the metadata with a still SVG frame as the image, drawn with larger glyphs for the collection grid, and the live cube as animation_url: one HTML file with about 16 KB of JavaScript and no outside requests. It is the same code that runs on this page, stored on the chain byte for byte, and the still frame is the moment the live cube starts from, on a 40 × 24 grid. The samples here use made-up hashes of the right shape; a real block draws its own.
--[0x07]--[the market]
- Blocks trade on OpenSea like any ERC-721 on Robinhood Chain. A mined block can be listed the minute it is out.
- Royalty 5% (ERC-2981) to the author's treasury, enforced with ERC721-C. The transfer rules are set once at deploy and nobody can change them.
- The scene shows the curve price next to the OpenSea floor. When the floor is above the curve, the curve is the cheaper block and 65% of what you pay goes to holders. When the floor is below, the market is cheaper.
- A block bought on the market comes with whatever it has earned and not claimed (0x04).
--[0x08]--[no keys]
The author pays the deploy gas and gets what the rules give: 20% of curve purchases and the 5% royalty, to a treasury address fixed at deploy. Anyone can push the author's share to it; nobody can send it anywhere else.
No keys also means no fixes: a bug cannot be patched after deploy. That is why the contract ships only after a full run on the testnet (46630) and an audit.
--[0x09]--[the contract]
One contract is the whole machine, and the scene is its control panel: every object on it is a call, under the contract's own names; the behaviour is the spec above.
+--[HUD] depth() openedAt() ------------------------------------------+ | | | [TAPE] .----------. [BUY] buy(qty) | | Mined Bought | cube | price() quote(qty) | | Sealed Claimed | tip() | | | Paid | target() | [POOL] vaults() | | '----------' | | [MINE] mine(nonce) [YOURS] claim(ids) | | earned(id) | | | | [CHAIN] blockOf(id) tokenURI(id) ===#0417==#0418==#0419=== | +-----------------------------------------------------------------------+ no button: [SEAL] seal(id) [TREASURY] payTreasury()
+--[HUD] depth() openedAt() ---------------+ | | | .----------. | | | cube | tip() | | '----------' target() | | [MINE] mine(nonce) | | | | [BUY] buy(qty) | | price() quote(qty) | | [POOL] vaults() | | [YOURS] claim(ids) earned(id) | | [CHAIN] blockOf(id) tokenURI(id) | | [TAPE] Mined Bought Sealed | | Claimed Paid | | | +------------------------------------------+ no button: [SEAL] seal(id) [TREASURY] payTreasury()
The rig. Your hash is keccak256("hblcks", tip, nonce, you): below target() and block #depth is yours. Somebody landed first? The tip moved, the call reverts, mine on from the new one.
The booth. 1 to 100 blocks from the curve, each charged at its own depth and split into the vaults as it lands. Send quote(qty) and the change comes back in the same call. If the depth ran past what you sent, it reverts; near the end it sells what is left and refunds the rest.
The bars. What came into the BUY vault, the POW vault and the author's share so far, and the weights WBUY and WPOW they split over.
Pays you what your blocks have earned, all in one call. Until then it sits on each block and moves with it when the block is sold.
One block the way the scene draws it: route, hash, work bits, weight and balance. tokenURI(id) is its art (0x06).
The depth bar and the clock. The genesis hour runs from openedAt() to openedAt() + 3600.
No button on the scene while it sells: every call seals the ready blocks before it. Fixes a block's weight from the hash of its chain block, or at x1 once that hash is gone (0x05). Anyone may call it; it returns the weight.
No button either. Sends the author's waiting share to the treasury fixed at deploy. Anyone may call it; the money can go nowhere else.
The tape. Every line on the scene's tape is read from the chain:
| on the tape | from the chain | |
|---|---|---|
| OPEN | genesis: Ξ0.00100 for 60 min | Opened(deployBlock), then Seeded(seed) |
| BUY | #0418..0427 for Ξ0.0100 | Bought(id, buyer, price), one per block |
| YOURS | #3000 mined, 2^28.6 | Mined(id, miner, hash) |
| LUCKY | #1234 x2 | Sealed(id, weight) |
| CLAIM | Ξ0.00210 | Claimed(holder, amount) |
| GENESIS | over, curve Ξ0.00276 | openedAt() + 3600 |
| WALL | 2^38 by #4000 | depth() past 3100 |
| MINTED OUT | at 3:06:12 | the Mined or Bought of #9999 |
| SOLD | #0412 $0.04 -> $6.10 | Transfer and the market's own sale event |
Paid(amount) marks each payTreasury(). The rest is the standard kit: ERC-721 transfers and approvals, ERC-2981 royaltyInfo (5% to the treasury), ERC721-C getTransferValidator (fixed at deploy).
Before it ships it gets fuzzed: the pool to the wei, the work and the price against the tables on this page, sealing and the history window, batches across the end of the genesis hour, the mint-out. An independent audit found no way to take more than is owed, and its tests now run with ours.
--[0x0a]--[numbers]
| supply | 10,000 blocks, #0000 to #9999 |
| chain | Robinhood Chain 4663 |
| work | 2^22 at #0000, 2^28.82 at #3100, 2^38 at #4000, 2^44 at #9999 |
| all the work | 2.5·1016 hashes |
| genesis hour | 60 minutes from the open, Ξ0.001 a block |
| curve | 0.001 · 2^(n / 2048) ETH, Ξ0.0295 ($79) for #9999 |
| batch | up to 100 blocks |
| pool | 65% bought blocks, 15% mined blocks, 20% author |
| royalty | 5%, ERC-2981 through ERC721-C |
| lucky | 1/16 x2, 1/256 x5, 1/4096 x25, mean weight 1.084 |
| owner | none |