Do not attempt this with real funds until you've mastered the below! It may end up unrecoverable. (Thank you for making bitcoin more valuable)
Because funds are better off on my hodl wallet (cold) than hot wallet.
This is the manual way of doing so for now.
First connect to remote peer.
lncli --network=testnet connect <peername>
From the hardware wallet, first get a close address (so the funds come back).
Then try to open a channel
lncli --network=testnet openchannel --node_key <node_id> --local_amt 50000 --psbt --no_publish --close_address <close_address>
bitcoin-cli -testnet listwallets
Assuming we don't have a wallet path lets use wallet.dat in the wallet directory and see if we have funds!
bitcoin-cli -testnet -rpcwallet="" listtransactions
Use a tool such as tmux
to have more than one screen.
First connect to remote peer.
lncli --network=testnet connect <peername>
bitcoin-cli -testnet -rpcwallet="" getnewaddress
lncli --network=testnet openchannel --node_key <node_id> --local_amt 50000 --psbt --no_publish --close_address <close_address>
- Get the address and amount and use it to create an unsigned PSBT transaction.
- Sign the PSBT transaction and approve on HW wallet
- DO NOT Broadcast
- Copy signed PSBT to LND to verify and then copy again.
The transaction should be broadcasted
bitcoin-cli -testnet walletcreatefundedpsbt -rpcwallet="" [] '[{"<address>":<amount>}]'
bitcoin-cli -testnet walletprocesspsbt -rpcwallet="" <psbt>