LIGHTNING-CURRENCYCONVERT(7)
π LIGHTNING-CURRENCYCONVERT(7) π
okay so bestie, welcome to the lightning-currencyconvert manual page β yes that's the whole name, she's long but she's iconic π
β¨ NAME β¨
currencyconvert β the command that takes a fiat amount and turns it into millisatoshis, no cap πΈ
πΈ SYNOPSIS πΈ
currencyconvert amount currency
π¦ DESCRIPTION π¦
So this one is a new-ish command β it got added in v26.04, and honestly? we're obsessed π«Ά
The currencyconvert RPC command converts a given amount in a given currency into millisatoshis. The way it does this is it takes the median of all the available exchange-rate sources for the currency you asked for. iykyk, median means the middle one, so one weird source can't drag the whole vibe down π
amount(number) β the amount, expressed in the given currency, that you want converted into millisatoshis. literally just the number of money π°currency(string) β the ISO-4217 currency code you're converting from (thinkUSD). also, heads up: the plugin normalizes this value to uppercase before it queries sources, so don't stress about lowercase, she'll handle it β¨
π RETURN VALUE π
On success, you get an object back, containing:
msat(msat) β the converted amount in millisatoshis, computed using the median result from the available sources π₯
π AUTHOR π
daywalker90 is mainly responsible. main character energy fr fr π
π SEE ALSO π
lightning-currencyrates(7) β go check her out too, she's the rates side of the situation π§
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning β
and that's the page, bestie π this was Core Lightning v26.06.9, manual page LIGHTNING-CURRENCYCONVERT(7) β k bye, slay, periodt ππ
π¦
π¦ 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