GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-LISTADDRESSES(7) LIGHTNING-LISTADDRESSES(7)

lightning-listaddresses -- Command to list all addresses issued by the node to date

listaddresses [address] [start] [limit]

Command added in v24.11.

The listaddresses RPC command provides a detailed list of all Bitcoin addresses that have been generated and issued by the Core Lightning node up to the current date.

  • address (string, optional): A Bitcoin accepted type, including a bech32, address for lookup in the list of addresses issued to date.

  • start (u64, optional): Starting key index for listing addresses or searching for a particular address. The default is 1.

  • limit (u32, optional): The maximum number of addresses to return or search for. The default is Total number of addresses issued.

On success, an object containing addresses is returned. It is an array of objects, where each object contains:

  • keyidx (u64): The key index of the address issued.

  • bech32 (string, optional): The bech32 (native segwit) address.

  • p2tr (string, optional): The taproot address.

Shahana Farooqui <sfarooqui@blockstream.com> is mainly responsible.

lightning-newaddr(7), lightning-withdraw(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli listaddresses "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf"

{

"id": "example:listaddresses#1",
"method": "listaddresses",
"params": [
"bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf"
] }

Response:

{

"addresses": [
{
"keyidx": 14,
"p2tr": "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf"
}
] }

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"
}
] }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.