Home Reference Source
public class | source

CurrencyUtils

CurrencyUtils class. Helper to convert CSPR and motes.

Static Method Summary

Static Public Methods
public static

convertCasperToMotes(casperAmount: String): BigNumber

Convert casper to motes

public static

convertMotesToCasper(motesAmount: BigNumber): String

Convert motes to casper

Static Public Methods

public static convertCasperToMotes(casperAmount: String): BigNumber source

Convert casper to motes

Params:

NameTypeAttributeDescription
casperAmount String

Amount in casper

Return:

BigNumber

public static convertMotesToCasper(motesAmount: BigNumber): String source

Convert motes to casper

Params:

NameTypeAttributeDescription
motesAmount BigNumber

Amount in motes

Return:

String