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>
8 lines
241 B
Bash
Executable file
8 lines
241 B
Bash
Executable file
#!/bin/bash
|
|
curl -s localhost:46944/json_rpc \
|
|
-d '{"jsonrpc":"2.0","id":"0","method":"getaddress"}' \
|
|
-H 'Content-Type: application/json' | python3 -c "
|
|
import sys,json
|
|
d=json.load(sys.stdin)['result']
|
|
print('Address:', d['address'])
|
|
"
|