mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
Don't assume removal is +6 months, but have a start deprecation/end support range. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
59 lines
1.7 KiB
Markdown
59 lines
1.7 KiB
Markdown
lightning-newaddr -- Command for generating a new address to be used by Core Lightning
|
|
======================================================================================
|
|
|
|
SYNOPSIS
|
|
--------
|
|
|
|
**newaddr** [*addresstype*]
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
|
|
The **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.
|
|
|
|
*addresstype* specifies the type of address wanted; currently *bech32*
|
|
(e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet
|
|
or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on
|
|
bitcoin mainnet), or *p2tr* taproot addresses. The special value *all*
|
|
generates all known address types for the same underlying key.
|
|
|
|
If no *addresstype* is specified the address generated is a *bech32* address.
|
|
|
|
To send an on-chain payment _from_ the Core Lightning node wallet, use `withdraw`.
|
|
|
|
RETURN VALUE
|
|
------------
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
On success, an object is returned, containing:
|
|
|
|
- **p2tr** (string, optional): The taproot address *(added v23.08)*
|
|
- **bech32** (string, optional): The bech32 (native segwit) address
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
|
|
|
ERRORS
|
|
------
|
|
|
|
If an unrecognized address type is requested an error message will be
|
|
returned.
|
|
|
|
AUTHOR
|
|
------
|
|
|
|
Felix <<fixone@gmail.com>> is mainly responsible.
|
|
|
|
SEE ALSO
|
|
--------
|
|
|
|
lightning-listfunds(7), lightning-fundchannel(7), lightning-withdraw(7), lightning-listtransactions(7)
|
|
|
|
RESOURCES
|
|
---------
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
|
|
|
[comment]: # ( SHA256STAMP:443545e42992626b55c87dd694b272aba58a2fd80e776edad95428e161f229a3)
|