Docs
What it is
Herokin is a collection of pixel heroes on Robinhood Chain, capped at 4,663. You design your hero in the forge and mint it as an ERC-721 token. Each combination of look and gear can only exist once.
Traits
| Look | body (2), skin (4), hairstyle (11), hair colour (6), stored as one number below 1024 |
| Class | Warrior, Ranger, Mage or Cleric; each class has its own weapons |
| Weapon | sword, battleaxe, lance, bow or staff, in tin, cobalt, silver, gold or mithril |
| Armour, helm, boots, shield | none or one of seven metals: tin, cobalt, silver, gold, mithril, Delver, Rimeguard |
Uniqueness
The contract stores keccak256(look, gear) for every hero. Minting a combination that already exists reverts with Taken(id). The forge checks this as you build, so you see "free" or "taken" before you sign.
Minting and restyling
- Minting costs 0.0003 ETH. The hero goes to your wallet.
- Restyling costs 0.0001 ETH. Change any trait of a hero you own; the new combination must be free, and the old one becomes free for others. The hero keeps its number and its history.
The picture
The token's metadata points to /api/meta/{id} on this site, which reads the traits from the contract and returns them with an image URL. The image is drawn on the server from the same traits, so it always matches the chain. Marketplaces pick it up like any ERC-721.
What the owner can do
- Point the metadata at a new host (
setBase), in case the site moves. - Change the owner and treasury.
Prices and supply are fixed at deploy. The owner can't mint for free, move heroes, change traits or block transfers. Anyone can sweep mint fees to the treasury.
Risks
The contract is unaudited. Heroes are collectibles with no promised value. If this site went away, the traits would stay on chain, but the picture would need a new host.
Art credits
Bodies, hair, armour and weapons come from the Liberated Pixel Cup sprites, via the Universal LPC Spritesheet Character Generator, licensed CC-BY-SA 3.0 and GPL 3.0. Artists include Stephen Challener (Redshrike), Johannes Sjölund (wulax), Matthew Krohn (makrohn), Nila122, bluecarrot16, Benjamin K. Smith (BenCreating), Evert, Eliza Wyatt (ElizaWy), TheraHedwig, Durrani, Pierre Vigier (pvigier), Thane Brimhall, laetissima, Daniel Eddeland, castelonia, JaidynReiman and many more; the full list is in the project's CREDITS.csv.
Contract
| Herokin (ERC-721) | opening soon |
Herokin