diff --git a/lib/node/rpc.js b/lib/node/rpc.js index b9a19ddb..d86fb21d 100644 --- a/lib/node/rpc.js +++ b/lib/node/rpc.js @@ -256,7 +256,7 @@ class RPC extends RPCBase { async help(args, _help) { if (args.length === 0) - return 'Select a command.'; + return `Select a command:\n${Object.keys(this.calls).join('\n')}`; const json = { method: args[0], diff --git a/lib/wallet/rpc.js b/lib/wallet/rpc.js index 80deaa9e..b6020c02 100644 --- a/lib/wallet/rpc.js +++ b/lib/wallet/rpc.js @@ -173,7 +173,7 @@ class RPC extends RPCBase { async help(args, _help) { if (args.length === 0) - return 'Select a command.'; + return `Select a command:\n${Object.keys(this.calls).join('\n')}`; const json = { method: args[0],