LIGHTNING-CURRENCYCONVERT(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

πŸ’… 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 (think USD). 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