java.lang.Object
com.hedera.hashgraph.sdk.FeeEstimate
The fee estimate for a fee component (node or service).
Includes the base fee and any extras associated with it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) static FeeEstimatefromJson(com.google.gson.JsonObject feeEstimate) Create a FeeEstimate from a JSON object returned by the mirror node REST API.longgetBase()Extract the base fee price in tinycents.Extract the list of extra fees.inthashCode()toString()
-
Constructor Details
-
FeeEstimate
Constructor.- Parameters:
base- the base fee price in tinycentsextras- the list of extra fees
-
-
Method Details
-
fromJson
Create a FeeEstimate from a JSON object returned by the mirror node REST API.- Parameters:
feeEstimate- the JSON representation- Returns:
- the new FeeEstimate
-
getBase
public long getBase()Extract the base fee price in tinycents.- Returns:
- the base fee price in tinycents
-
getExtras
Extract the list of extra fees.- Returns:
- an unmodifiable list of extra fees
-
toString
-
equals
-
hashCode
public int hashCode()
-