LIGHTNING-LISTADDRESSES(7)
π LIGHTNING-LISTADDRESSES(7) π
okay so bestie, you already know this is the lightning-listaddresses page, and it's genuinely one of the cutest little RPCs in the whole lightning family β let's get into it π
β¨ NAME β¨
listaddresses β the command that lists, like, every address your node has ever handed out to date. yes, all of them. the whole collection. π¦
πΈ SYNOPSIS πΈ
listaddresses [address] [start] [limit]
three optional little args, super chill, no pressure π
π DESCRIPTION π
this one's a newer addition, bestie β it got added in v24.11. not me showing up late to the party but absolutely slaying once i arrive π
the listaddresses RPC command gives you a detailed list of all the Bitcoin addresses that have been generated and issued by the Core Lightning node up to the current date. like a whole scrapbook of every address your node ever gave out πβ¨
here's what you can pass in:
address(string, optional) β a Bitcoin accepted type, including a bech32, address for lookup in the list of addresses issued to date. so if you wanna hunt down one specific address, this is your girl πstart(u64, optional) β starting key index for listing addresses or searching for a particular address. the default is1. gotta start somewhere, right? π«limit(u32, optional) β the maximum number of addresses to return or search for. the default is Total number of addresses issued. so if you don't say anything, you get the whole pile, no cap π
π₯ RETURN VALUE π₯
on success, you get back an object containing addresses. it's an array of objects, and each object contains:
keyidx(u64) β the key index of the address issued. the receipts, basically π§Ύbech32(string, optional) β the bech32 (native segwit) address. classic, iconic πp2tr(string, optional) β the taproot address. taproot girlies stay winning π
π AUTHOR π
Shahana Farooqui sfarooqui@blockstream.com is mainly responsible. we stan a main character who builds RPCs fr fr π«Ά
π¦ SEE ALSO π¦
iykyk, go read those next π
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning β go be nosy, it's encouraged π§
πΈ EXAMPLES πΈ
Example 1 π«
Request:
$ lightning-cli listaddresses "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf"
{
"id": "example:listaddresses#1",
"method": "listaddresses",
"params": [
"bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf"
]
}
Response:
{
"addresses": [
{
"keyidx": 14,
"p2tr": "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf"
}
]
}
look at that β she found the address, keyidx 14, tapped in and tapped root-ed π
β¨
Example 2 π
Request:
$ lightning-cli listaddresses -k "start"=6 "limit"=2
{
"id": "example:listaddresses#2",
"method": "listaddresses",
"params": {
"start": 6,
"limit": 2
}
}
Response:
{
"addresses": [
{
"keyidx": 6,
"bech32": "bcrt1qkpw662yvzdy5ttdg8nw4eh4el0uc7m2ythw0h3"
},
{
"keyidx": 7,
"p2tr": "bcrt1pn45xgkyj54usdu98plm4zgcp4c5jvvfxmyexwcm5kc3gyfsrjmasd6ctsf"
}
]
}
start at 6, limit to 2, and boom β you get keyidx 6 (bech32) and keyidx 7 (p2tr). two icons, one response π€©
friendly reminder bestie:address,startandlimitare all optional β if you just yelllistaddressesinto the void, it defaults to starting at1and returning Total number of addresses issued. no surprises, no drama, just vibes π
okay that's the whole page! this one's brought to you by Core Lightning v26.06.9 β shoutout to the version tag holding it down at the bottom of the manpage, we love a consistent queen π§ββοΈπ periodt.
π¦ 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