dcrlncli Options and Commands
Last updated for dcrlnd release v0.3.0.
dcrlncli
is a client which controls Decred Lightning Network Daemon (dcrlnd
) via RPC calls.
You can use dcrlncli
for many things, such as checking your balance, managing channels,
creating transactions, and viewing network information.
dcrlncli
is not a daemon - it does not run permanently in the background - it calls the
requested RPC method, prints the response, and then terminates immediately.
Usage
dcrlncli [global options] command [command options] [arguments...]
Global Options
Flag |
Info |
--rpcserver value |
Host:port of Decred LN daemon (default: "localhost:10009" ) |
--lnddir value |
Path to dcrlnd’s base directory (default: "~/.dcrlnd" ) |
--tlscertpath value |
Path to TLS certificate (default: "~/.dcrlnd/tls.cert" ) |
--chain value , -c value |
The chain dcrlnd is running on e.g. decred (default: "decred" ) |
--testnet |
Use the test network |
--simnet |
Use the simulation network |
--regtest |
Use the regression test network |
--no-macaroons |
Disable macaroon authentication |
--macaroonpath value |
Path to macaroon file |
--macaroontimeout value |
Anti-replay macaroon validity time in seconds (default: 60 ) |
--macaroonip value |
If set, lock macaroon to specific IP address |
--help , -h |
Show help |
--version , -v |
Print the version |
Commands
General Commands
Command |
Info |
getinfo |
Returns basic information related to the active daemon. |
getrecoveryinfo |
Display information about an ongoing recovery attempt. |
debuglevel |
Set the debug level. |
stop |
Stop and shutdown the daemon. |
version |
Display lncli and lnd version info. |
help, h |
Shows a list of commands or help for one command |
Autopilot Commands
Command |
Info |
autopilot |
Interact with a running autopilot. |
Channel Commands
Graph Commands
Invoice Commands
Macaroon Commands
Command |
Info |
bakemacaroon |
Bakes a new macaroon with the provided list of permissions and restrictions. |
listmacaroonids |
List all macaroons root key IDs in use. |
deletemacaroonid |
Delete a specific macaroon ID. |
listpermissions |
Lists all RPC method URIs and the macaroon permissions they require to be invoked. |
printmacaroon |
Print the content of a macaroon in a human readable format. |
On-chain Commands
Command |
Info |
estimatefee |
Get fee estimates for sending decred on-chain to multiple addresses. |
sendmany |
Send decred on-chain to multiple addresses. |
sendcoins |
Send decred on-chain to an address. |
listunspent |
List UTXOs available for spending. |
listchaintxns |
List transactions from the wallet. |
Payment commands
Peer commands
Command |
Info |
connect |
Connect to a remote dcrlnd peer. |
disconnect |
Disconnect a remote dcrlnd peer identified by public key. |
listpeers |
List all active, currently connected peers. |
Startup commands
Command |
Info |
create |
Initialize a wallet when starting dcrlnd for the first time. |
unlock |
Unlock an encrypted wallet at startup. |
changepassword |
Change an encrypted wallet’s password at startup. |
Wallet commands
Watchtower commands
Command |
Info |
tower |
Interact with the watchtower. |
wtclient |
Interact with the watchtower client. |