Skip to content

Instantly share code, notes, and snippets.

@dougvk
Last active January 20, 2018 23:39
Show Gist options
  • Save dougvk/d64af97d75270af2e366e583e729c259 to your computer and use it in GitHub Desktop.
Save dougvk/d64af97d75270af2e366e583e729c259 to your computer and use it in GitHub Desktop.
Create lightning-cli command

Create a lightning-cli shortcut to interface with the node

#!/usr/bin/env bash
docker run --rm -v /scratch/bitcoin/mainnet/clightning:/root/.lightning --entrypoint /usr/bin/lightning-cli cdecker/lightningd:master "$@"

root@docker-s-6vcpu-16gb-nyc3-01:~# chmod +x /usr/local/bin/lightning-cli

root@docker-s-6vcpu-16gb-nyc3-01:~# lightning-cli getinfo
{ "id" : "03e71ed1bbedcf41d97e06ef3dfe4cdf79e871e9a3c809ab32b78e71dea45bf78c", "port" : 9735, "address" :
	[  ], "version" : "v0.5.2-2016-11-21-1414-g5eceaa7", "blockheight" : 505236 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment