'\" t
. \" Title: lightning-newaddr
. \" Author: [see the "AUTHOR" section]
. \" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
. \" Date: 02/23/2019
. \" Manual: \ \&
. \" Source: \ \&
. \" Language: English
. \"
.TH "LIGHTNING\-NEWADDR" "7" "02/23/2019" "\ \&" "\ \&"
. \" -----------------------------------------------------------------
. \" * 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
\fB newaddr\fR [ \fI addresstype\fR ]
.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
\fI addresstype\fR specifies the type of address wanted; i\& .e\& . \fI p2sh\- segwit\fR (e\& .g\& . 2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta on bitcoin testnet or 3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3 on bitcoin mainnet) or \fI bech32 \* (Aq (e\& .g\& . tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg on bitcoin testnet or bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej on bitcoin mainnet)\& . The special value \* (Aqall\fR generates both address types for the same underlying key\& .
.sp
If not specified the address generated is bech32\& .
.SH "RETURN VALUE"
.sp
On success, a \fI bech32\fR address and/or a \fI p2sh\- segwit\fR address will be returned\& .
.SH "ERRORS"
.sp
If an unrecognized address type is requested an error message will be returned\& .
.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