[{"data":1,"prerenderedAt":427},["ShallowReactive",2],{"doc:docs_en:\u002Fdocs\u002Freadme":3,"doc-nav:docs_en":412},{"id":4,"title":5,"body":6,"description":404,"extension":405,"meta":406,"navigation":407,"path":408,"seo":409,"stem":410,"__hash__":411},"docs_en\u002Fdocs\u002FREADME.md","Hexcore v2 user guide",{"type":7,"value":8,"toc":396},"minimark",[9,13,31,36,106,114,118,159,187,191,194,257,261,268,279,283,365,369,392],[10,11,5],"h1",{"id":12},"hexcore-v2-user-guide",[14,15,16,17,21,22,26,27,30],"p",{},"Hexcore builds and runs Hydra Heads on Cardano from a single command: it runs ",[18,19,20],"code",{},"hydra-node"," in Docker and comes with a web UI. This guide describes version ",[23,24,25],"strong",{},"2.0.0-beta.10"," (",[18,28,29],{},"npm i -g @vtechcom\u002Fhexcore",").",[32,33,35],"h2",{"id":34},"pick-a-path-by-role","Pick a path by role",[37,38,39,55],"table",{},[40,41,42],"thead",{},[43,44,45,49,52],"tr",{},[46,47,48],"th",{},"You are",[46,50,51],{},"Goal",[46,53,54],{},"Read in this order",[56,57,58,83],"tbody",{},[43,59,60,68,71],{},[61,62,63,64,67],"td",{},"A ",[23,65,66],{},"DApp developer"," on Hydra",[61,69,70],{},"Quickly set up a Hydra Head to test your DApp",[61,72,73,78,79],{},[74,75,77],"a",{"href":76},"01-chuan-bi-may","1. Prepare your machine"," → ",[74,80,82],{"href":81},"02-developer-dapp","2. Guide for DApp developers",[43,84,85,91,94],{},[61,86,63,87,90],{},[23,88,89],{},"provider"," joining the Hydra Trust Center",[61,92,93],{},"Run hydra-node on a server, open a head with other providers, connect to Trust Center",[61,95,96,78,98,78,102],{},[74,97,77],{"href":76},[74,99,101],{"href":100},"03-cai-tren-server","3. Install on a server",[74,103,105],{"href":104},"04-provider-trust-center","4. Guide for providers",[14,107,108,109,113],{},"Stuck at any step: ",[74,110,112],{"href":111},"05-xu-ly-su-co","5. Troubleshooting",".",[32,115,117],{"id":116},"what-hexcore-consists-of","What Hexcore consists of",[119,120,125],"pre",{"className":121,"code":122,"language":123,"meta":124,"style":124},"language-mermaid shiki shiki-themes github-light github-dark","flowchart LR\n  C[\"Browser, SDK, curl\"] -->|\"HTTP(S)\"| H[\"Hexcore\u003Cbr\u002F>port 4000\u003Cbr\u002F>API + web UI\"]\n  H -->|\"Docker API\"| N[\"hydra-node\u003Cbr\u002F>one container\u003Cbr\u002F>per node\"]\n  N -->|\"chain\"| L[\"Cardano L1\u003Cbr\u002F>offline, Blockfrost\u003Cbr\u002F>or cardano-node\"]\n  H -.-> S[(\"~\u002F.hexcore\u003Cbr\u002F>configuration, SQLite,\u003Cbr\u002F>keys of every node\")]\n","mermaid","",[18,126,127,135,141,147,153],{"__ignoreMap":124},[128,129,132],"span",{"class":130,"line":131},"line",1,[128,133,134],{},"flowchart LR\n",[128,136,138],{"class":130,"line":137},2,[128,139,140],{},"  C[\"Browser, SDK, curl\"] -->|\"HTTP(S)\"| H[\"Hexcore\u003Cbr\u002F>port 4000\u003Cbr\u002F>API + web UI\"]\n",[128,142,144],{"class":130,"line":143},3,[128,145,146],{},"  H -->|\"Docker API\"| N[\"hydra-node\u003Cbr\u002F>one container\u003Cbr\u002F>per node\"]\n",[128,148,150],{"class":130,"line":149},4,[128,151,152],{},"  N -->|\"chain\"| L[\"Cardano L1\u003Cbr\u002F>offline, Blockfrost\u003Cbr\u002F>or cardano-node\"]\n",[128,154,156],{"class":130,"line":155},5,[128,157,158],{},"  H -.-> S[(\"~\u002F.hexcore\u003Cbr\u002F>configuration, SQLite,\u003Cbr\u002F>keys of every node\")]\n",[160,161,162,174,181],"ul",{},[163,164,165,166,169,170,173],"li",{},"Configuration, SQLite and every node's keys live only in ",[18,167,168],{},"~\u002F.hexcore",". ",[23,171,172],{},"Back up this directory",": the signing keys of funded addresses exist nowhere else.",[163,175,176,177,180],{},"Stopping Hexcore does ",[23,178,179],{},"not"," stop heads: hydra-node runs in its own container.",[163,182,183,184,113],{},"The UI is available in Vietnamese and English. This guide names labels in English, for example ",[23,185,186],{},"Settings",[32,188,190],{"id":189},"three-chain-backends","Three chain backends",[14,192,193],{},"The chain backend is how hydra-node reads from and writes to Cardano L1, chosen when you create a head.",[37,195,196,209],{},[40,197,198],{},[43,199,200,203,206],{},[46,201,202],{},"Backend",[46,204,205],{},"Needs",[46,207,208],{},"Use when",[56,210,211,224,244],{},[43,212,213,218,221],{},[61,214,215],{},[23,216,217],{},"Offline",[61,219,220],{},"Nothing",[61,222,223],{},"Testing DApps, demos: L1 is simulated, no real funds needed",[43,225,226,231,241],{},[61,227,228],{},[23,229,230],{},"Blockfrost",[61,232,233,234,240],{},"A free project id from ",[74,235,239],{"href":236,"rel":237},"https:\u002F\u002Fblockfrost.io",[238],"nofollow","blockfrost.io",", for the right network",[61,242,243],{},"A preprod\u002Fpreview head without running cardano-node",[43,245,246,251,254],{},[61,247,248],{},[23,249,250],{},"cardano-node",[61,252,253],{},"The socket of a synced cardano-node on the same machine",[61,255,256],{},"Providers and long-running heads: reads the chain directly",[32,258,260],{"id":259},"hydra-node-version","hydra-node version",[14,262,263,264,267],{},"Use ",[23,265,266],{},"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.",[14,269,270,271,273,274,30],{},"Known upstream bug: ",[23,272,230],{}," heads on every version, 2.4.2 included, can crash-loop on a token with an empty asset name (",[74,275,278],{"href":276,"rel":277},"https:\u002F\u002Fgithub.com\u002Fcardano-scaling\u002Fhydra\u002Fissues\u002F2923",[238],"hydra#2923",[32,280,282],{"id":281},"glossary","Glossary",[37,284,285,295],{},[40,286,287],{},[43,288,289,292],{},[46,290,291],{},"Term",[46,293,294],{},"Meaning in this guide",[56,296,297,305,313,330,338,353],{},[43,298,299,302],{},[61,300,301],{},"Head",[61,303,304],{},"An L2 channel between a group of parties, opened and closed by L1 transactions",[43,306,307,310],{},[61,308,309],{},"Party",[61,311,312],{},"A participant in a head, one node each",[43,314,315,327],{},[61,316,317,320,321,320,324],{},[18,318,319],{},"Init",", ",[18,322,323],{},"Close",[18,325,326],{},"Fanout",[61,328,329],{},"Open the head, close it, return UTxOs to L1",[43,331,332,335],{},[61,333,334],{},"Public URL",[61,336,337],{},"Hexcore's public HTTPS address",[43,339,340,343],{},[61,341,342],{},"Access token",[61,344,63,345,348,349,352],{},[18,346,347],{},"hxn_…"," token that lets outside code connect to ",[23,350,351],{},"one"," head",[43,354,355,362],{},[61,356,357],{},[74,358,361],{"href":359,"rel":360},"https:\u002F\u002Fdocs.hydraone.app\u002Fen\u002Ftrust\u002Ftrust-center",[238],"Trust Center",[61,363,364],{},"HydraOne's service attesting who holds a head's node keys",[32,366,368],{"id":367},"related-documents","Related documents",[160,370,371,378,385],{},[163,372,373,377],{},[74,374,376],{"href":375},"..\u002F..\u002FREADME","Repo README"," (English): CLI, HTTP API, configuration.",[163,379,380,384],{},[74,381,383],{"href":382},"..\u002FPRODUCT","docs\u002FPRODUCT.md",": the cost of running a head.",[163,386,387,391],{},[74,388,390],{"href":389},"..\u002F..\u002FCHANGELOG","CHANGELOG.md",": changes per version.",[393,394,395],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":124,"searchDepth":137,"depth":137,"links":397},[398,399,400,401,402,403],{"id":34,"depth":137,"text":35},{"id":116,"depth":137,"text":117},{"id":189,"depth":137,"text":190},{"id":259,"depth":137,"text":260},{"id":281,"depth":137,"text":282},{"id":367,"depth":137,"text":368},"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\u002Fhexcore).","md",{},true,"\u002Fdocs\u002Freadme",{"title":5,"description":404},"docs\u002FREADME","mK79XqayRHXKCjdNthUvwHDQsZ4CXbImORSwyhj91II",[413,416,418,421,424,426],{"path":414,"title":415},"\u002Fdocs\u002F01-chuan-bi-may","1. Prepare your machine and install the Hexcore CLI",{"path":417,"title":82},"\u002Fdocs\u002F02-developer-dapp",{"path":419,"title":420},"\u002Fdocs\u002F03-cai-tren-server","3. Install Hexcore on a server (Ubuntu, Debian, RHEL family)",{"path":422,"title":423},"\u002Fdocs\u002F04-provider-trust-center","4. Guide for providers joining Hydra Trust Center",{"path":425,"title":112},"\u002Fdocs\u002F05-xu-ly-su-co",{"path":408,"title":5},1795426327823]