| | | 1 | | namespace NLightning.Client.Utils; |
| | | 2 | | |
| | | 3 | | public static class ClientUtils |
| | | 4 | | { |
| | | 5 | | public static void ShowUsage() |
| | 0 | 6 | | { |
| | 0 | 7 | | Console.WriteLine("NLightning Node Client"); |
| | 0 | 8 | | Console.WriteLine("Usage:"); |
| | 0 | 9 | | Console.WriteLine(" nltg [options] [command]"); |
| | 0 | 10 | | Console.WriteLine(); |
| | 0 | 11 | | Console.WriteLine("Options:"); |
| | 0 | 12 | | Console.WriteLine(" --network, -n <network> Network to use (mainnet, testnet, regtest) [default: mainnet]"); |
| | 0 | 13 | | Console.WriteLine(" --cookie, -c <path> Path to cookie file"); |
| | 0 | 14 | | Console.WriteLine(" --help, -h, -? Show this help message"); |
| | 0 | 15 | | Console.WriteLine(); |
| | 0 | 16 | | Console.WriteLine("Commands:"); |
| | 0 | 17 | | Console.WriteLine(" info Get node information via IPC"); |
| | 0 | 18 | | Console.WriteLine(" connect <node> Connect to a peer node"); |
| | 0 | 19 | | Console.WriteLine(" listpeers List all connected peers"); |
| | 0 | 20 | | Console.WriteLine(" getaddress <p2tr|p2wpkh|all> Gets a unused address of the requested type"); |
| | 0 | 21 | | Console.WriteLine(" walletbalance Gets the wallet balance"); |
| | 0 | 22 | | Console.WriteLine(" openchannel Open a channel to peer"); |
| | 0 | 23 | | Console.WriteLine(); |
| | 0 | 24 | | Console.WriteLine("Environment Variables:"); |
| | 0 | 25 | | Console.WriteLine(" NLTG_NETWORK Network to use"); |
| | 0 | 26 | | Console.WriteLine(" NLTG_COOKIE Path to cookie file"); |
| | 0 | 27 | | Console.WriteLine(); |
| | 0 | 28 | | Console.WriteLine("Cookie file location: ~/.nltg/{network}/nltg.ipc"); |
| | 0 | 29 | | } |
| | | 30 | | } |