2021-06-23 14:31:47 -05:00
|
|
|
lightning-parsefeerate -- Command for parsing a feerate string to a feerate
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-11-10 20:44:56 -05:00
|
|
|
**parsefeerate** *feerate\_str*
|
2021-06-23 14:31:47 -05:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **parsefeerate** command returns the current feerate for any valid
|
2022-11-10 20:44:56 -05:00
|
|
|
*feerate\_str*. This is useful for finding the current feerate that a
|
2021-06-23 14:31:47 -05:00
|
|
|
**fundpsbt** or **utxopsbt** command might use.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
2022-09-06 07:03:09 +09:30
|
|
|
|
2022-11-10 21:03:13 -05:00
|
|
|
- **perkw** (u32, optional): Value of *feerate\_str* in kilosipa
|
2021-09-03 19:37:59 +09:30
|
|
|
|
2021-06-23 14:31:47 -05:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
|
|
|
|
|
|
|
ERRORS
|
|
|
|
------
|
|
|
|
|
2022-11-10 20:44:56 -05:00
|
|
|
The **parsefeerate** command will error if the *feerate\_str* format is
|
2021-06-23 14:31:47 -05:00
|
|
|
not recognized.
|
|
|
|
|
|
|
|
- -32602: If the given parameters are wrong.
|
|
|
|
|
|
|
|
TRIVIA
|
|
|
|
------
|
|
|
|
|
2022-05-13 17:54:36 +02:00
|
|
|
In CLN we like to call the weight unit "sipa"
|
2021-06-23 14:31:47 -05:00
|
|
|
in honor of Pieter Wuille,
|
|
|
|
who uses the name "sipa" on IRC and elsewhere.
|
|
|
|
Internally we call the *perkw* style as "feerate per kilosipa".
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
|
|
|
|
2023-01-30 16:54:16 +10:30
|
|
|
[comment]: # ( SHA256STAMP:be616b76a92bb1d8863350cf44b79f9d2cd8a6e9a7993bd9b5e704d9e0038790)
|