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-NEWADDR(7) LIGHTNING-NEWADDR(7)

lightning-newaddr -- Command for generating a new address to be used by Core Lightning

newaddr [addresstype]

The newaddr RPC command generates a new address which can subsequently be used to fund channels managed by the Core Lightning node.

The funding transaction needs to be confirmed before funds can be used.

To send an on-chain payment from the Core Lightning node wallet, use withdraw.

addresstype (string, optional) (one of "bech32", "p2tr", "all"): It specifies the type of address wanted; currently bech32 (e.g. tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg on bitcoin testnet or bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej on bitcoin mainnet), or p2tr taproot addresses. The special value all generates all known address types for the same underlying key. The default is bech32 address.

On success, an object is returned, containing:

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

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

If an unrecognized address type is requested an error message will be returned.

Felix <fixone@gmail.com> is mainly responsible.

lightning-listfunds(7), lightning-fundchannel(7), lightning-withdraw(7), lightning-listtransactions(7)

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

Example 1:

Request:

$ lightning-cli newaddr

{

"id": "example:newaddr#1",
"method": "newaddr",
"params": {} }

Response:

{

"bech32": "bcrt1qwx6am26cuw38y4863pd6swrce2g8mzhaxr9xp8" }

Example 2:

Request:

$ lightning-cli newaddr -k "addresstype"="p2tr"

{

"id": "example:newaddr#2",
"method": "newaddr",
"params": {
"addresstype": "p2tr"
} }

Response:

{

"p2tr": "bcrt1p2gppccw6ywewmg74qqxxmqfdpjds3rpr0mf22y9tm9xcc0muggwsea9nkf" }
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.