You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Edouard f72c5ca099
V0.1.0 (#10)
* config: add Views

* refac views channels

* fix config default

* views: menu

* config default: add comment

* fix config default

* README: enhance config section

* fix README

* controller: F2 Menu

* views: transactions

* fix views: set current in layout

* fix menu

* ft transactions

* fix Help

* fix controller Menu

* view: transaction

* refac controller

* fix ui controller

* try some bold

* fix cursor

* refac color

* focus column transactions

* controller: add keyBinding Menu m

* help view: add menu

* fix cursor: push to the right

* refac remove current model

* ui: txs and channels sortable

* fix focus column

* view transaction: transaction dest addresses

* fix menu

* refac controller

* channels: sort

* rename current column

* refac cursor

* refac currentColumnIndex

* set cursor if view deleted

* remove previous

* clean view.View

* controller: ToggleView

* fix menu

* view txs: add config

* feat order

* fix channels sort
* feat transactions sort
* feat help: add asc/desc
* fix README
* color: magenta
* fix color
* fix views menu
* fix views help
* network backend: SubscribeTransactions
* pubsub: transactions
* controller.Listen: refresh transactions
* fix controller
* fix controller pubsub: no need for wallet ticker
* fix models transactions
* views channels: column SENT and RECEIVED
* update version
* fix README
* fix README
* fix models sort
* fix readme and default config
* fix readme
5 years ago
app fix logger: use default development 5 years ago
cli V0.1.0 (#10) 5 years ago
cmd/lntop cli: init app 5 years ago
config V0.1.0 (#10) 5 years ago
docker docker: drop docker-compose dependency 5 years ago
events V0.1.0 (#10) 5 years ago
logging fix logger: use default development 5 years ago
network V0.1.0 (#10) 5 years ago
pubsub V0.1.0 (#10) 5 years ago
ui V0.1.0 (#10) 5 years ago
vendor views: message.NewPrinter(language.English) 5 years ago
.gitignore goreleaser 5 years ago
.goreleaser.yml goreleaser 5 years ago
LICENSE Initial commit 5 years ago
README.md V0.1.0 (#10) 5 years ago
doc.go add doc.go 5 years ago
go.mod views: message.NewPrinter(language.English) 5 years ago
go.sum refac config: use toml 5 years ago

README.md

lntop

MIT licensed Go Report Card Godoc tippin.me

lntop is an interactive text-mode channels viewer for Unix systems.

lntop-v0.1.0 lntop-v0.1.0

Install

Require the go programming language (version >= 1.11)

git clone https://github.com/edouardparis/lntop.git
cd lntop && export GO111MODULE=on && go install -mod=vendor ./...

Config

First time lntop is used a config file .lntop/config.toml is created in the user home directory.

Change macaroon path according to your network.

[logger]
type = "production"
dest = "/root/.lntop/lntop.log"

[network]
name = "lnd"
type = "lnd"
address = "//127.0.0.1:10009"
cert = "/root/.lnd/tls.cert"
macaroon = "/root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon"
macaroon_timeout = 60
max_msg_recv_size = 52428800
conn_timeout = 1000000
pool_capacity = 3

[views]
# views.channels is the view displaying channel list.
[views.channels]
# It is possible to add, remove and order columns of the
# table with the array columns. The available values are:
columns = [
	"STATUS",      # status of the channel
	"ALIAS",       # alias of the channel node
	"GAUGE",       # ascii bar with percent local/capacity
	"LOCAL",       # the local amount of the channel
	"CAP",         # the total capacity of the channel
	"SENT",        # the total amount sent
	"RECEIVED",    # the total amount received
	"HTLC",        # the number of pending HTLC
	"UNSETTLED",   # the amount unsettled in the channel
	"CFEE",        # the commit fee
	"LAST UPDATE", # last update of the channel
	"PRIVATE",     # true if channel is private
	"ID",          # the id of the channel
]

[views.transactions]
# It is possible to add, remove and order columns of the
# table with the array columns. The available values are:
columns = [
	"DATE",      # date of the transaction
	"HEIGHT",    # block height of the transaction
	"CONFIR",    # number of confirmations
	"AMOUNT",    # amount moved by the transaction
	"FEE",       # fee of the transaction
	"ADDRESSES", # number of transaction output addresses
]

Docker

If you prefer to run lntop from a docker container, cd docker and follow README there.

Compatibility

lntop lightningnetwork/lnd
v0.0.1 v0.5.1