UNPKG

@rsksmart/btc-eth-unit-converter

Version:

Tool to provide safe conversion between units in BTC and ETH

32 lines (17 loc) 1.07 kB
export function weisToGwei(amountInWeis: number | string): string; export function weisToEth(amountInWeis: number | string): string; export function gweisToWeis(amountInGweis: number | string): string; export function gweisToEth(amountInGweis: number | string): string; export function ethToWeis(amountInEth: number | string): string; export function ethToGweis(amountInEth: number | string): string; /* BTC units conversion */ export function satoshisToBtc(amountInSatoshis: number | string): string; export function btcToSatoshis(amountInBtc: number | string): string; /* ETH to BTC units conversion */ export function weisToSatoshis(amountInWeis: number | string): string; export function weisToBtc(amountInWeis: number | string): string; export function ethToSatoshis(amountInEth: number | string): string; /* BTC to ETH units conversion */ export function satoshisToWeis(amountInSatoshis: number | string): string; export function satoshisToEth(amountInSatoshis: number | string): string; export function btcToWeis(amountInBtc: number | string): string;