mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-04 04:54:47 +01:00
43ae30df21
Useful for parsing a passed in feerate before calling lightningd with it, e.g. when you need to know what the feerate is for a fundpsbt before calling fundpsbt Changelog-Added: JSON-RPC: new command `parsefeerate` which takes a feerate string and returns the calculated perkw/perkb
46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
lightning-parsefeerate -- Command for parsing a feerate string to a feerate
|
|
===========================================================================
|
|
|
|
SYNOPSIS
|
|
--------
|
|
|
|
**parsefeerate** *feerate_str*
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
|
|
The **parsefeerate** command returns the current feerate for any valid
|
|
*feerate_str*. This is useful for finding the current feerate that a
|
|
**fundpsbt** or **utxopsbt** command might use.
|
|
|
|
RETURN VALUE
|
|
------------
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
On success, an object is returned, containing:
|
|
- **perkw** (u32, optional): Value of *feerate_str* in kilosipa
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
|
|
|
ERRORS
|
|
------
|
|
|
|
The **parsefeerate** command will error if the *feerate_str* format is
|
|
not recognized.
|
|
|
|
- -32602: If the given parameters are wrong.
|
|
|
|
TRIVIA
|
|
------
|
|
|
|
In C-lightning we like to call the weight unit "sipa"
|
|
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>
|
|
|
|
[comment]: # ( SHA256STAMP:db3351466f8d2675cecf6f5909c1f3ff264b6ffa865b2d64eb02bf0b45a31a4d)
|