--- title: "Opening channels" slug: "opening-channels" hidden: false createdAt: "2022-11-18T16:26:57.798Z" updatedAt: "2023-01-31T15:07:08.196Z" --- First you need to transfer some funds to `lightningd` so that it can open a channel: ```shell # Returns an address
lightning-cli newaddr ``` `lightningd` will register the funds once the transaction is confirmed. You may need to generate a p2sh-segwit address if the faucet does not support bech32: ```shell # Return a p2sh-segwit address lightning-cli newaddr p2sh-segwit ``` Confirm `lightningd` got funds by: ```shell # Returns an array of on-chain funds. lightning-cli listfunds ``` Once `lightningd` has funds, we can connect to a node and open a channel. Let's assume the **remote** node is accepting connections at `