public class TronCurrency extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DECIMALS
Number of decimals for the TRX currency.
|
static TronCurrency |
MAX_FEE_LIMIT
Max limit for transactions (1000 TRX)
|
static TronCurrency |
ZERO
Value zero (0 TRX, 0 SUN)
|
Constructor and Description |
---|
TronCurrency(long value)
Creates a new instance of TronCurrency
|
Modifier and Type | Method and Description |
---|---|
long |
getSUN() |
double |
getTRX() |
static TronCurrency |
sun(long value)
Creates a new instance of TronCurrency
|
static TronCurrency |
trx(double value)
Creates a new instance of TronCurrency
|
public static final int DECIMALS
public static final TronCurrency ZERO
public static final TronCurrency MAX_FEE_LIMIT
public TronCurrency(long value)
value
- The value (SUN)public static TronCurrency trx(double value)
value
- The value (TRX)public static TronCurrency sun(long value)
value
- The value (SUN)public long getSUN()
public double getTRX()
Copyright © 2020. All rights reserved.