LIGHTNING-PARSEFEERATE(7)
π lightning-parsefeerate(7) β okay so this is the glow-up guide
Hey bestie, welcome to the lightning-parsefeerate manual page, aka the little command that translates your feerate mood into actual numbers π
β¨ NAME β¨
parsefeerate β the command for parsing a feerate string into a feerate, no cap π
πΈ SYNOPSIS πΈ
parsefeerate feerate_str
π¦ DESCRIPTION π¦
Okay so parsefeerate literally returns the current feerate for any valid feerate_str. It's giving translator-girlie energy π
And why do we care? Because it's genuinely useful for finding the current feerate that a fundpsbt or utxopsbt command might use. So if you're ever like "hmm what would they even do with this string", this command tells you fr fr β¨
feerate_str(string): the feerate string you wanna parse, bestie π
π RETURN VALUE π
On success, you get an object back, containing:
perkw(u32, optional): the value offeerate_strin kilosipa. Slay π
π ERRORS π
The parsefeerate command will error if the feerate_str format is not recognized. Rude, but fair π
-32602: if the given parameters are wrong. Not me getting the params wrong π
π§ TRIVIA π§
Okay this is my favorite part β in CLN we like to call the weight unit "sipa" in honor of Pieter Wuille, who uses the name "sipa" on IRC and elsewhere π Iconic behavior tbh.
Internally we call the perkw style as "feerate per kilosipa". Periodt π
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning β go look, iykyk π¦
β EXAMPLES β
Example 1 π
Request:
$ lightning-cli parsefeerate "unilateral_close"
{
"id": "example:parsefeerate#1",
"method": "parsefeerate",
"params": [
"unilateral_close"
]
}
Response:
{
"perkw": 11000
}
Example 2 πΈ
Request:
$ lightning-cli parsefeerate "9999perkw"
{
"id": "example:parsefeerate#2",
"method": "parsefeerate",
"params": [
"9999perkw"
]
}
Response:
{
"perkw": 9999
}
Example 3 π
Request:
$ lightning-cli parsefeerate "10000"
{
"id": "example:parsefeerate#3",
"method": "parsefeerate",
"params": [
10000
]
}
Response:
{
"perkw": 2500
}
Example 4 π₯
Request:
$ lightning-cli parsefeerate "urgent"
{
"id": "example:parsefeerate#4",
"method": "parsefeerate",
"params": [
"urgent"
]
}
Response:
{
"perkw": 11000
}
Okay that's the whole page, bestie β every flag, every field, every example, all present and accounted for π«Ά
This masterpiece is brought to you by Core Lightning v26.06.9 β catch you in the next manual page, mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms