mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-27 09:04:40 +01:00
ba7d4a8f6b
We were including the entire list of prerequisites when generating a shastamp, which for schemas includes the `tools/fromschema.py` doc. This meant all of our shasums were updating anytime this tool file changed. Instead, we just include the first prerequisite. See: https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html#Automatic-Variables
60 lines
1.8 KiB
Groff
Generated
60 lines
1.8 KiB
Groff
Generated
.TH "LIGHTNING-NEWADDR" "7" "" "" "lightning-newaddr"
|
|
.SH NAME
|
|
lightning-newaddr - Command for generating a new address to be used by Core Lightning
|
|
.SH SYNOPSIS
|
|
|
|
\fBnewaddr\fR [ \fIaddresstype\fR ]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The \fBnewaddr\fR 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\.
|
|
|
|
|
|
\fIaddresstype\fR specifies the type of address wanted; i\.e\. \fIp2sh-segwit\fR
|
|
(e\.g\. \fB2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta\fR on bitcoin testnet or
|
|
\fB3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3\fR on bitcoin mainnet) or \fIbech32\fR
|
|
(e\.g\. \fBtb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg\fR on bitcoin testnet
|
|
or \fBbc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej\fR on
|
|
bitcoin mainnet)\. The special value \fIall\fR generates both address types
|
|
for the same underlying key\.
|
|
|
|
|
|
If no \fIaddresstype\fR is specified the address generated is a \fIbech32\fR address\.
|
|
|
|
|
|
To send an on-chain payment \fIfrom\fR the Core Lightning node wallet, use \fBwithdraw\fR\.
|
|
|
|
.SH RETURN VALUE
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
.RS
|
|
.IP \[bu]
|
|
\fBbech32\fR (string, optional): The bech32 (native segwit) address
|
|
.IP \[bu]
|
|
\fBp2sh-segwit\fR (string, optional): The p2sh-wrapped address
|
|
|
|
.RE
|
|
.SH ERRORS
|
|
|
|
If an unrecognized address type is requested an error message will be
|
|
returned\.
|
|
|
|
.SH AUTHOR
|
|
|
|
Felix \fI<fixone@gmail.com\fR> is mainly responsible\.
|
|
|
|
.SH SEE ALSO
|
|
|
|
\fBlightning-listfunds\fR(7), \fBlightning-fundchannel\fR(7), \fBlightning-withdraw\fR(7), \fBlightning-listtransactions\fR(7)
|
|
|
|
.SH RESOURCES
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|
|
\" SHA256STAMP:62fcbc384a244851f34f9d30a7e5ae79c767fc6bca96b818ec8e11619afc397d
|