2018-04-26 12:12:17 +02:00
'\" t
. \" Title: lightning-newaddr
. \" Author: [see the "AUTHOR" section]
. \" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
2018-07-23 16:08:45 +02:00
. \" Date: 07/23/2018
2018-04-26 12:12:17 +02:00
. \" Manual: \ \&
. \" Source: \ \&
. \" Language: English
. \"
2018-07-23 16:08:45 +02:00
.TH "LIGHTNING\-NEWADDR" "7" "07/23/2018" "\ \&" "\ \&"
2018-04-26 12:12:17 +02:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
lightning-newaddr \- Command for generating a new address to be used by c\- lightning\& .
.SH "SYNOPSIS"
.sp
2018-07-23 16:08:45 +02:00
\fB newaddr\fR [ \fI addresstype\fR ]
2018-04-26 12:12:17 +02:00
.SH "DESCRIPTION"
.sp
The \fB newaddr\fR RPC command generates a new address which can subsequently be used to fund channels managed by the c\- lightning node\& .
.sp
The funding transaction needs to be confirmed before funds can be used\& .
.sp
2018-07-23 16:08:45 +02:00
\fI addresstype\fR specifies the type of address wanted; i\& .e\& . p2sh\- segwit (e\& .g\& . 2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta on bitcoin testnet or 3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3 on bitcoin mainnet) or bech32 (e\& .g\& . tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg on bitcoin testnet or bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej on bitcoin mainnet)\& .
2018-04-26 12:12:17 +02:00
.sp
2018-07-23 16:08:45 +02:00
If not specified the address generated is bech32\& .
2018-04-26 12:12:17 +02:00
.SH "RETURN VALUE"
.sp
On success, a new address will be returned\& .
.SH "ERRORS"
.sp
2018-07-23 16:08:45 +02:00
If an unrecognized address type is requested an error message will be returned\& .
2018-04-26 12:12:17 +02:00
.SH "AUTHOR"
.sp
Felix <fixone@gmail\& .com> is mainly responsible\& .
.SH "SEE ALSO"
.sp
lightning\- listfunds(7), lightning\- fundchannel(7), lightning\- withdraw(7)
.SH "RESOURCES"
.sp
Main web site: https://github\& .com/ElementsProject/lightning