java.lang.Object
com.hedera.hashgraph.sdk.ExchangeRate
Denotes a conversion between Hbars and cents (USD).
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intDenotes cents (USD) equivalent to Hbarfinal doubleCalculated exchange ratefinal InstantExpiration time of this exchange ratefinal intDenotes Hbar equivalent to cents (USD) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ExchangeRateCreate an Exchange Rate from a protobuf.toString()
-
Field Details
-
hbars
public final int hbarsDenotes Hbar equivalent to cents (USD) -
cents
public final int centsDenotes cents (USD) equivalent to Hbar -
expirationTime
Expiration time of this exchange rate -
exchangeRateInCents
public final double exchangeRateInCentsCalculated exchange rate
-
-
Constructor Details
-
ExchangeRate
ExchangeRate(int hbars, int cents, Instant expirationTime)
-
-
Method Details