blockchain/docker/demos/node-quickstart.tape
Claude eebfb3f1f1
Some checks are pending
Build & Release / Linux x86_64 (push) Waiting to run
Build & Release / macOS ARM64 (push) Waiting to run
Build & Release / Create Release (push) Blocked by required conditions
feat(demos): add VHS terminal demo GIFs for node, exit node, and health check
Rendered with charmbracelet/vhs. Tape scripts included for re-rendering.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-03 12:25:51 +01:00

43 lines
1.2 KiB
VHS

# Lethean Home Node — Quick Start Demo
# Renders to GIF showing how easy it is to run a node
Output demos/node-quickstart.gif
Set FontSize 16
Set Width 1000
Set Height 600
Set Theme "Dracula"
Set TypingSpeed 50ms
Set Padding 20
Type "# Lethean Home Node — Quick Start"
Enter
Sleep 1s
Type "# Step 1: Configure"
Enter
Type "cp .env.example .env"
Enter
Sleep 500ms
Type "# Step 2: Start the node"
Enter
Type "docker compose -f docker-compose.node.yml up -d"
Enter
Sleep 2s
Type "# Step 3: Check chain sync"
Enter
Type@100ms 'curl -s http://localhost:46941/json_rpc -d '"'"'{"jsonrpc":"2.0","id":"0","method":"getinfo"}'"'"' -H "Content-Type: application/json" | python3 -c "import sys,json; d=json.load(sys.stdin)['"'"'result'"'"']; print(f'"'"'Height: {d[\"height\"]}, Status: {d[\"status\"]}'"'"')"'
Enter
Sleep 2s
Type "# Step 4: Check wallet balance"
Enter
Type@100ms 'curl -s http://localhost:46944/json_rpc -d '"'"'{"jsonrpc":"2.0","id":"0","method":"getbalance"}'"'"' -H "Content-Type: application/json" | python3 -c "import sys,json; d=json.load(sys.stdin)['"'"'result'"'"']; print(f'"'"'Balance: {d[\"balance\"]/1e12:.4f} LTHN'"'"')"'
Enter
Sleep 2s
Type "# Node is running, staking automatically!"
Enter
Sleep 2s