Hexcore v2 user guide
Hexcore builds and runs Hydra Heads on Cardano from a single command: it runs hydra-node in Docker and comes with a web UI. This guide describes version 2.0.0-beta.10 (npm i -g @vtechcom/hexcore).
Pick a path by role
| You are | Goal | Read in this order |
|---|---|---|
| A DApp developer on Hydra | Quickly set up a Hydra Head to test your DApp | 1. Prepare your machine → 2. Guide for DApp developers |
| A provider joining the Hydra Trust Center | Run hydra-node on a server, open a head with other providers, connect to Trust Center | 1. Prepare your machine → 3. Install on a server → 4. Guide for providers |
Stuck at any step: 5. Troubleshooting.
What Hexcore consists of
- Configuration, SQLite and every node's keys live only in
~/.hexcore. Back up this directory: the signing keys of funded addresses exist nowhere else. - Stopping Hexcore does not stop heads: hydra-node runs in its own container.
- The UI is available in Vietnamese and English. This guide names labels in English, for example Settings.
Three chain backends
The chain backend is how hydra-node reads from and writes to Cardano L1, chosen when you create a head.
| Backend | Needs | Use when |
|---|---|---|
| Offline | Nothing | Testing DApps, demos: L1 is simulated, no real funds needed |
| Blockfrost | A free project id from blockfrost.io, for the right network | A preprod/preview head without running cardano-node |
| cardano-node | The socket of a synced cardano-node on the same machine | Providers and long-running heads: reads the chain directly |
hydra-node version
Use 2.4.2 for new heads: it is recommended on every platform (Apple Silicon included) and is the only version Trust Center can verify on L1.
Known upstream bug: Blockfrost heads on every version, 2.4.2 included, can crash-loop on a token with an empty asset name (hydra#2923).
Glossary
| Term | Meaning in this guide |
|---|---|
| Head | An L2 channel between a group of parties, opened and closed by L1 transactions |
| Party | A participant in a head, one node each |
Init, Close, Fanout | Open the head, close it, return UTxOs to L1 |
| Public URL | Hexcore's public HTTPS address |
| Access token | A hxn_… token that lets outside code connect to one head |
| Trust Center | HydraOne's service attesting who holds a head's node keys |
Related documents
- Repo README (English): CLI, HTTP API, configuration.
- docs/PRODUCT.md: the cost of running a head.
- CHANGELOG.md: changes per version.