Overview

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 areGoalRead in this order
A DApp developer on HydraQuickly set up a Hydra Head to test your DApp1. Prepare your machine → 2. Guide for DApp developers
A provider joining the Hydra Trust CenterRun hydra-node on a server, open a head with other providers, connect to Trust Center1. 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.

BackendNeedsUse when
OfflineNothingTesting DApps, demos: L1 is simulated, no real funds needed
BlockfrostA free project id from blockfrost.io, for the right networkA preprod/preview head without running cardano-node
cardano-nodeThe socket of a synced cardano-node on the same machineProviders 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

TermMeaning in this guide
HeadAn L2 channel between a group of parties, opened and closed by L1 transactions
PartyA participant in a head, one node each
Init, Close, FanoutOpen the head, close it, return UTxOs to L1
Public URLHexcore's public HTTPS address
Access tokenA hxn_… token that lets outside code connect to one head
Trust CenterHydraOne's service attesting who holds a head's node keys