---
updatedAt: 2026-10-14T14:56:46.000Z
agentTools:
  projectIndex: https://docs.corelightning.org/llms.txt
---

# currencyconvert

# currencyconvert -- Command to convert a fiat amount into millisatoshis

## SYNOPSIS

**currencyconvert** *amount* *currency*

## DESCRIPTION

Command *added* in v26.04.

The **currencyconvert** RPC command converts a given amount in a given currency into millisatoshis.
It uses the median of the available exchange-rate sources for the requested currency.

* **amount** (number): The amount, expressed in the given currency, to convert into millisatoshis.
* **currency** (string): The ISO-4217 currency code (e.g. USD) to convert from.
  The plugin normalizes this value to uppercase before querying sources.

## RETURN VALUE

On success, an object is returned, containing:

* **msat** (msat): The converted amount in millisatoshis, computed using the median result from the available sources.

## AUTHOR

daywalker90 is mainly responsible.

## SEE ALSO

lightning-currencyrate(7)

## RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>