Skip to content

Instantly share code, notes, and snippets.

@masakielastic
Created February 15, 2018 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masakielastic/e9dc5f6e7a46324ecb3588483e782f76 to your computer and use it in GitHub Desktop.
Save masakielastic/e9dc5f6e7a46324ecb3588483e782f76 to your computer and use it in GitHub Desktop.
$ cli/lightning-cli help
command=dev-blockheight
description=Show current block height
command=dev-setfees
description=Set feerate in satoshi-per-kw for {immediate}, {normal} and {slow} (each is optional, when set, separate by spaces) and show the value of those three feerates
command=listnodes
description=Show all nodes in our local network view
command=getroute
description=Show route to {id} for {msatoshi}, using {riskfactor} and optional {cltv} (default 9), if specified search from {source} otherwise use this node as source.
command=listchannels
description=Show all known channels
command=invoice
description=Create an invoice for {msatoshi} with {label} and {description} with optional {expiry} seconds (default 1 hour)
command=listinvoice
description=(DEPRECATED) Show invoice {label} (or all, if no {label}))
command=listinvoices
description=Show invoice {label} (or all, if no {label})
command=delinvoice
description=Delete unpaid invoice {label} with {status}
command=waitanyinvoice
description=Wait for the next invoice to be paid, after {lastpay_index} (if supplied)
command=waitinvoice
description=Wait for an incoming payment matching the invoice with {label}, or if the invoice expires
command=decodepay
description=Decode {bolt11}, using {description} if necessary
command=help
description=List available commands, or give verbose help on one command.
command=stop
description=Shut down the lightningd process
command=dev-rhash
description=Show SHA256 of {secret}
command=dev-crash
description=Crash lightningd by calling fatal()
command=getinfo
description=Show information about this node
command=getlog
description=Show logs, with optional log {level} (info|unusual|debug|io)
command=listconfigs
description=List all configuration options, or with [config], just that one.
command=sendpay
description=Send along {route} in return for preimage of {rhash}
command=pay
description=Send payment specified by {bolt11} with optional {msatoshi} (if and only if {bolt11} does not have amount), {description} (required if {bolt11} uses description hash), {riskfactor} (default 1.0), and {maxfeepercent} (default 0.5) the maximum acceptable fee as a percentage (e.g. 0.5 => 0.5%)
command=listpayments
description=Show outgoing payments
command=connect
description=Connect to {id} at {host} (which can end in ':port' if not default)
command=listpeers
description=Show current peers, if {level} is set, include logs for {id}
command=fundchannel
description=Fund channel with {id} using {satoshi} satoshis
command=close
description=Close the channel with peer {id}
command=dev-sign-last-tx
description=Sign and show the last commitment transaction with peer {id}
command=dev-fail
description=Fail with peer {id}
command=dev-reenable-commit
description=Re-enable the commit timer on peer {id}
command=dev-forget-channel
description=Forget the channel with peer {id}, ignore UTXO check with {force}='true'.
command=dev-ping
description=Send {peerid} a ping of length {len} asking for {pongbytes}
command=dev-memdump
description=Show memory objects currently in use
command=dev-memleak
description=Show unreferenced memory objects
command=withdraw
description=Send to {destination} address {satoshi} (or 'all') amount via Bitcoin transaction
command=newaddr
description=Get a new {bech32, p2sh-segwit} address to fund a channel
command=listfunds
description=Show available funds from the internal wallet
command=dev-rescan-outputs
description=Synchronize the state of our funds with bitcoind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment