![]() |
![]()
| ![]() |
![]()
NAMElightning-newaddr -- Command for generating a new address to be used by Core Lightning SYNOPSISnewaddr [addresstype] DESCRIPTIONThe 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.
RETURN VALUEOn success, an object is returned, containing:
ERRORSIf an unrecognized address type is requested an error message will be returned. AUTHORFelix <fixone@gmail.com> is mainly responsible. SEE ALSOlightning-listfunds(7), lightning-fundchannel(7), lightning-withdraw(7), lightning-listtransactions(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli newaddr { Response: { Example 2: Request: $ lightning-cli newaddr -k "addresstype"="p2tr" { Response: {
|