2022-04-06 07:09:48 +02:00
|
|
|
lightning-newaddr -- Command for generating a new address to be used by Core Lightning
|
|
|
|
======================================================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**newaddr** [ *addresstype* ]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **newaddr** RPC command generates a new address which can
|
2022-04-06 07:09:48 +02:00
|
|
|
subsequently be used to fund channels managed by the Core Lightning node.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
The funding transaction needs to be confirmed before funds can be used.
|
|
|
|
|
|
|
|
*addresstype* specifies the type of address wanted; i.e. *p2sh-segwit*
|
2021-02-10 11:54:27 +01:00
|
|
|
(e.g. `2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta` on bitcoin testnet or
|
|
|
|
`3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3` on bitcoin mainnet) or *bech32*
|
|
|
|
(e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet
|
|
|
|
or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on
|
|
|
|
bitcoin mainnet). The special value *all* generates both address types
|
2019-08-10 01:54:18 +02:00
|
|
|
for the same underlying key.
|
|
|
|
|
2021-02-10 11:54:27 +01:00
|
|
|
If no *addresstype* is specified the address generated is a *bech32* address.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2022-07-06 20:07:38 +02:00
|
|
|
To send an on-chain payment _from_ the Core Lightning node wallet, use `withdraw`.
|
|
|
|
|
2019-08-10 01:54:18 +02:00
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
- **bech32** (string, optional): The bech32 (native segwit) address
|
|
|
|
- **p2sh-segwit** (string, optional): The p2sh-wrapped address
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
ERRORS
|
|
|
|
------
|
|
|
|
|
|
|
|
If an unrecognized address type is requested an error message will be
|
|
|
|
returned.
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Felix <<fixone@gmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
2020-08-13 18:19:35 +02:00
|
|
|
lightning-listfunds(7), lightning-fundchannel(7), lightning-withdraw(7), lightning-listtransactions(7)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2022-09-08 03:08:00 +02:00
|
|
|
[comment]: # ( SHA256STAMP:e9650b5f1f4374007c8fde63dae2ac9981c952ed8074aabade39fcc0ebe21333)
|