6 VHS terminal demos with reusable helper scripts: - ecosystem-startup: full stack coming online - wallet-basics: address, balance, chain info, aliases - lns-dns: HTTP API and DNS resolution - exit-node: VPN exit setup - node-quickstart: 3-step home node - health-check: all services green Co-Authored-By: Charon <charon@lethean.io>
13 lines
417 B
Bash
Executable file
13 lines
417 B
Bash
Executable file
#!/bin/bash
|
|
curl -s localhost:46941/json_rpc \
|
|
-d '{"jsonrpc":"2.0","id":"0","method":"get_all_alias_details"}' \
|
|
-H 'Content-Type: application/json' | python3 -c "
|
|
import sys,json
|
|
aliases=json.load(sys.stdin)['result']['aliases']
|
|
print(f'{len(aliases)} aliases registered on-chain:')
|
|
print()
|
|
for a in aliases:
|
|
name = a['alias']
|
|
comment = a.get('comment','')
|
|
print(f' @{name:12s} {comment[:50]}')
|
|
"
|