<p>I deposited some BTC to fund my lightning node. Question: Where are the private keys for the public on-chain address provided by the node in case I need to withdraw the funds from the node?</p>

CC BY-SA 4.0
2021-03-18T05:34:47.353Z
What software/platform are you using for your Lightning node (and if applicable, for your on-chain wallet)?
Pieter Wuille
CC BY-SA 4.0
2021-03-18T08:15:00.690Z
I am using bitcoind with lnd. I used `lncli create` to create the lightning wallet.  I also use ZAP desktop wallet to display the bitcoin address to which I deposited funds.
gomerj
CC BY-SA 4.0
2021-03-18T10:08:45.263Z
With a small research on the lightning network implementation I found that the node has some method to extract it. I'm not in the right moment to implement a answer but fot lnd you can flow the comment under this PR https://github.com/lightningnetwork/lnd/pull/2373
vincenzopalazzo
<lightning-network>
How to access my on-chain BTC private key(s) from my Lightning Node?
gomerj
# How to access my on-chain BTC private key(s) from my Lightning Node?

(Asked by: username_0 on 2021-03-18)

I deposited some BTC to fund my lightning node. Question: Where are the private keys for the public on-chain address provided by the node in case I need to withdraw the funds from the node?

**Tags:** lightning-network

> **Comments:**
> **username_1**: What software/platform are you using for your Lightning node (and if applicable, for your on-chain wallet)?  
> **username_0**: I am using bitcoind with lnd. I used `lncli create` to create the lightning wallet.  I also use ZAP desktop wallet to display the bitcoin address to which I deposited funds.  
> **username_2**: With a small research on the lightning network implementation I found that the node has some method to extract it. I'm not in the right moment to implement a answer but fot lnd you can flow the comment under this PR https://github.com/lightningnetwork/lnd/pull/2373  

---

## 0 answers

