LIGHTNING-NEWADDR(7)
π lightning-newaddr β a.k.a. the manual page formerly known as LIGHTNING-NEWADDR(7)
okay bestie, gather round, because this is the one where your node literally makes you an address π (like, for money to land on. iconic behavior.)
β¨ NAME β¨
newaddr β the command for generating a new address to be used by Core Lightning. yes that's it. that's the whole gig. slay. π
π¦ SYNOPSIS π¦
newaddr [addresstype]
πΈ DESCRIPTION πΈ
so the newaddr RPC command generates a new address, and that address can then be used to fund channels managed by the Core Lightning node. that's the whole point. you get an address, you put coins on it, you get channels. the circle of life π§
heads up though: the funding transaction needs to be confirmed before funds can be used. so don't be out here refreshing like it's a text back, it's a blockchain, it takes a minute π
and if you wanna send an on-chain payment from the Core Lightning node wallet, that's a different girl β use withdraw for that. newaddr is the receiving side of the story, withdraw is the sending side. iykyk π₯
addresstype(string, optional) (one of"bech32","p2tr","all") β this bad boy specifies the type of address you want. currently that'sbech32(like, e.g.tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqggon bitcoin testnet orbc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzejon bitcoin mainnet) orp2trtaproot addresses. and then there's the special valueall, which generates all known address types for the same underlying key β yeah, all of them, same key, she's multifunctional π The default isp2traddress. periodt.
π RETURN VALUE π
on success you get an object back, containing:
p2tr(string, optional) β The taproot address. (added v23.08) β¨bech32(string, optional) β The bech32 (native segwit) address.
π ERRORS π
if you ask for an unrecognized address type, an error message will be returned. that's it. don't make it weird. π
π«Ά AUTHOR π«Ά
Felix fixone@gmail.com is mainly responsible. thank you Felix, king behavior π
π SEE ALSO π
like, go read your sisters, bestie. they're all in the same friend group π
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1: the "just give me a default one" of it all
Request:
$ lightning-cli newaddr
{
"id": "example:newaddr#1",
"method": "newaddr",
"params": {}
}
Response:
{
"bech32": "bcrt1qwx6am26cuw38y4863pd6swrce2g8mzhaxr9xp8"
}
Example 2: the "i specifically want taproot" of it all
Request:
$ lightning-cli newaddr -k "addresstype"="p2tr"
{
"id": "example:newaddr#2",
"method": "newaddr",
"params": {
"addresstype": "p2tr"
}
}
Response:
{
"p2tr": "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf"
}
and that's the tea β β this page came to you straight from Core Lightning v26.06.9, so if you're out here on a different version, check your own docs bestie, ily, mwah ππ
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms