lncli
lncli -n testnet getinfo
code:first you have to create wallet
lncli create
code:check wallet
lncli listunspent
code:li
lncli openchannel --node_key 036497fee1a0b963a63f0b4374819d9016fcca9c09dbef4cb427a2d0146649b025 --connect 44.234.48.207:9735 --local_amt 90000 --sat_per_vbyte 1 --min_confs 0
code:shell
lncli create --stateless_init --save_to=./admin.macaroon
code:shell
lncli unlock --stateless_init
code:shell
lncli --rpcserver=IP_ADDRESS:GRPC_PORT --macaroonpath=./admin.macaroon
Send to LND wallet
code:shell
lncli newaddress <address type>
tb1qqhjlnmgjexwj7f6a9lvkxlfm3f8qn38k4wqtw3
036497fee1a0b963a63f0b4374819d9016fcca9c09dbef4cb427a2d0146649b025@44.234.48.207:9735
code:listpayments
lncli listpayments
--index_offset value The index of a payment that will be used as either the start (in forwards mode) or end (in reverse mode) of a query to determine which payments should be returned in the response, where the index_offset is excluded. If index_offset is set to zero in reversed mode, the query will end with the last payment made. (default: 0)\
reverse mode(たぶんデフォルト?)
pagiante の end の値
--paginate_forwards if set, payments succeeding the index_offset will be returned, allowing forwards pagination
index が増えていく方向で返される?という理解であっている?
Open channel
deposit 用のアドレスを作成して送金する
code:shell
lncli getnewaddress p2tr
code:shell
lncli openchannel --sat_per_vbyte 1 --connect <Ip>:<port> 5 <pubkey> 1500000
minimum channel default
20k
walletbalance
$ lncli walletbalance
channel balance は含まないみたいだが、確かめてはいない