@getalby/lightning-tools
Version:
Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps
15 lines (14 loc) • 525 B
TypeScript
export declare const getFiatBtcRate: (currency: string) => Promise<number>;
export declare const getFiatValue: ({ satoshi, currency, }: {
satoshi: number | string;
currency: string;
}) => Promise<number>;
export declare const getSatoshiValue: ({ amount, currency, }: {
amount: number | string;
currency: string;
}) => Promise<number>;
export declare const getFormattedFiatValue: ({ satoshi, currency, locale, }: {
satoshi: number | string;
currency: string;
locale: string;
}) => Promise<string>;