LIGHTNING-LISTCURRENCYRATES(7)
π± LIGHTNING-LISTCURRENCYRATES(7) π±
okay bestie, pull up a chair β this is the manual page for lightning-listcurrencyrates, and honestly? it's a little gem. β¨
πΈ NAME πΈ
currencyrates β the command that lists millisatoshis-per-unit from every single source you've got configured π
π¦ SYNOPSIS π¦
currencyrates currency
π DESCRIPTION π
bestie, this command is new new β like, it was added in v26.04. so if you're on some crusty old version and it's not there, that's why. π
The listcurrencyrates RPC command does one very specific, very iconic thing: it returns the number of units of a given currency for one BTC, pulled from each configured exchange-rate source. like, every source, all of them, one per object. the way that it just gathers them all up? obsessed. π
currency(string) β the ISO4217 currency code you wanna query, egUSD. and listen: the plugin normalizes this value to uppercase before it goes off querying sources, so don't stress about your lowercase typing, it's got you. π
β RETURN VALUE β
on success, you get back an object containing currencyrates β which is an array of objects, and each one of those objects has:
source(string) β the name of the source this rate came from (peepcurrencyrate-add-sourceinlightningd-configfor the deets on that one π«Ά)amount(number) β the amount of currency for 1 BTC. that's it. that's the number. π
π§ AUTHOR π§
daywalker90 is mainly responsible. give them their flowers fr fr π
π SEE ALSO π
lightning-currencyconvert(7) β the sibling, the companion, the other half of the currency saga π
π₯ RESOURCES π₯
Main web site: https://github.com/ElementsProject/lightning
ngl this page does exactly one thing and does it slay. no cap. π¦
and that's the whole vibe check, bestie β this lovely little doc ships with Core Lightning v26.06.9. go forth and convert π β¨π
π¦ 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