java.lang.Object
com.hedera.hashgraph.sdk.NetworkFee
The network fee component which covers the cost of gossip, consensus,
signature verifications, fee payment, and storage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static NetworkFeefromJson(com.google.gson.JsonObject networkFee) Create a NetworkFee from a JSON object returned by the mirror node REST API.intExtract the network fee multiplier.longExtract the network fee subtotal in tinycents.toString()
-
Constructor Details
-
NetworkFee
NetworkFee(int multiplier, long subtotal) Constructor.- Parameters:
multiplier- the network fee multipliersubtotal- the network fee subtotal in tinycents
-
-
Method Details
-
fromJson
Create a NetworkFee from a JSON object returned by the mirror node REST API.- Parameters:
networkFee- the JSON representation- Returns:
- the new NetworkFee
-
getMultiplier
public int getMultiplier()Extract the network fee multiplier.- Returns:
- the network fee multiplier
-
getSubtotal
public long getSubtotal()Extract the network fee subtotal in tinycents.- Returns:
- the network fee subtotal in tinycents
-
toString
-