Step-by-Step Tutorial: Managing Atomic Swaps & Nodes via the Fuego TUI
For developers, system administrators, and absolute privacy advocates, modern heavy web wrappers (Electron/React apps) introduce unnecessary attack surfaces, telemetry leakage, and resource consumption. Fuego v1.10.00 “AzorAhai” features a complete, standalone, zero-JS Terminal User Interface (TUI) written natively in Go. This tutorial provides comprehensive guidance on bootstrapping your local setup, navigating the dual-asset terminal interface, providing on-chain liquidity, and orchestrating trustless cross-chain atomic swaps directly from your shell.Prerequisites & Compilation
To ensure maximum cryptographic security and binary determinism, users are encouraged to compile the terminal client locally using standard Go tooling.System Requirements
- Operating System: Linux, macOS, or Windows (WSL2 recommended)
- Go Runtime: v1.24+
- C++ Toolchain: Standard
build-essentialorclangrequired for backend node core IPC compilation.
Step 1: Clone and Compile
Navigate to thetui/ directory of your project workspace and run the dedicated build automation script:
tui/ folder as fuego_suite.
Navigating the Terminal Workspace
Launch the interface in your preferred operating mode using the compiled executable:The Interface Layout
Global Key Bindings
Tab/Shift+Tab: Cycle active interface panels focus.h,j,k,l/Arrow Keys: Standard directional navigation within active menu lists.Enter: Confirm selection or trigger action form execution.Ctrl+C/q: Gracefully disconnect node RPC sessions and exit to OS shell.
Executing Core Protocol Operations
Operation 1: Burning XFG to Mint HEAT Cash
To convert your volatile collateral reserves into programmatic algorithmic stable assets:- Use
jto highlight 2. Mint HEAT (Burn2Mint) and pressEnter. - Enter the target amount of base-layer XFG to consume. The system automatically reads the current dynamic Q64.64 PI Controller
RedemptionPriceoff the blockchain state. - Review the output execution preview:
- Press
Enterto sign and push the irreversible conversion transaction. Once included in the block, your updated per-asset balance will reflect immediately in the overview pane.
Operation 2: Supplying Liquidity to the Hearth AMM
Earn sustainable L1 real-yield by pairing your reserves directly into the decentralized consensus layer:- Navigate to 3. Hearth L1 AMM Interface.
- Select the [Add Liquidity] execution tab.
- Input your desired base asset depth. Because Hearth enforces strict constant-product invariants (), the terminal client dynamically queries the exact required secondary ratio using
getAmmQuoteRPC calls. - Confirm deposit execution. The pool issues equivalent internal L1 LP shares, entitling your address to continuous pro-rata accumulation of the network’s flat 1% swap fees.
Operation 3: Conducting Peer-to-Peer Atomic Swaps
Fuego supports zero-counterparty risk, cross-chain atomic swaps (e.g., swapping native XFG directly for external Bitcoin or Monero outputs) using cryptographic adaptor signatures integrated into the terminal backend.Step-by-Step Swap Flow:
- Open the 4. Atomic Swap Engine panel.
- Select [Initiate Swap Offer] and provide your counterparty’s network routing descriptor (I2P address or direct node multiaddr).
- Specify the swap parameters (e.g., offering
500.00 XFGfor0.025 BTC). - The terminal engine automatically negotiates the cryptographic lock time boundaries and constructs the verification adapter script.
- Once both parties broadcast their respective initialization locks, monitor the auto-extracting progress bar inside the interface until final output settlement completes.
Troubleshooting & Verification
- Symptom:
Error: assetId mismatch during output discovery- Resolution: Verify that your terminal client binary is built against the v1.10.00 codebase header containing updated
CryptoNoteSerialization.cppmulti-asset decoding routines.
- Resolution: Verify that your terminal client binary is built against the v1.10.00 codebase header containing updated
- Symptom: High slippage warnings during AMM liquidity provisioning.
- Resolution: If the global TWAP spot price diverges sharply from your local node’s cache, run
5. Node Diagnostics -> Rebuild Sync Cacheto purge stale mempool states.
- Resolution: If the global TWAP spot price diverges sharply from your local node’s cache, run