From c8184b3e43a603454d672aed61b2ae461a80e1a8 Mon Sep 17 00:00:00 2001 From: rorp Date: Wed, 13 Mar 2024 02:47:20 -0700 Subject: [PATCH] Update the CLI tools (#2837) The latest eclair release added some RPCs that were missing from the CLI documentation. --- contrib/eclair-cli.bash-completion | 2 +- eclair-core/eclair-cli | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/eclair-cli.bash-completion b/contrib/eclair-cli.bash-completion index 227d4b91cd..d29a095fbc 100644 --- a/contrib/eclair-cli.bash-completion +++ b/contrib/eclair-cli.bash-completion @@ -21,7 +21,7 @@ _eclair-cli() *) # works fine, but is too slow at the moment. # allopts=$($eclaircli help 2>&1 | awk '$1 ~ /^"/ { sub(/,/, ""); print $1}' | sed 's/[":]//g') - allopts="getinfo connect open cpfpbumpfees close forceclose bumpforceclose updaterelayfee peers channels channel closedchannels allnodes allchannels allupdates findroute findroutetonode findroutebetweennodes parseinvoice payinvoice sendtonode getsentinfo createinvoice getinvoice listinvoices listpendinginvoices listreceivedpayments getreceivedinfo audit networkfees channelstats" + allopts="allchannels allupdates audit bumpforceclose channel channelbalances channels channelstats close closedchannels connect cpfpbumpfees createinvoice deleteinvoice disconnect findroute findroutebetweennodes findroutetonode forceclose getdescriptors getinfo getinvoice getmasterxpub getnewaddress getreceivedinfo getsentinfo globalbalance listinvoices listpendinginvoices listreceivedpayments networkfees node nodes onchainbalance onchaintransactions open parseinvoice payinvoice payoffer peers rbfopen sendonchain sendonionmessage sendtonode sendtoroute signmessage splicein spliceout stop updaterelayfee usablebalances verifymessage" if ! [[ " $allopts " =~ " $prev " ]]; then # prevent double arguments if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then diff --git a/eclair-core/eclair-cli b/eclair-core/eclair-cli index 5754f53a78..2ad994c156 100755 --- a/eclair-core/eclair-cli +++ b/eclair-core/eclair-cli @@ -74,10 +74,12 @@ and COMMAND is one of the available commands: === Payment === - usablebalances - payinvoice + - payoffer - sendtonode - sendtoroute - getsentinfo - getreceivedinfo + - listreceivedpayments === Message === - signmessage @@ -91,6 +93,8 @@ and COMMAND is one of the available commands: - onchainbalance - onchaintransactions - globalbalance + - getmasterxpub + - getdescriptors Examples --------