java.lang.Object
com.hedera.hashgraph.sdk.FeeExtra
The extra fee charged for the transaction.
Represents additional fees that apply for specific fee components, such as charges beyond included amounts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) static FeeExtrafromJson(com.google.gson.JsonObject feeExtra) Create a FeeExtra from a JSON object returned by the mirror node REST API.longExtract the charged count of items.longgetCount()Extract the actual count of items.longExtract the fee price per unit in tinycents.longExtract the count included for free.getName()Extract the unique name of this extra fee.longExtract the subtotal in tinycents.inthashCode()toString()
-
Constructor Details
-
FeeExtra
FeeExtra(long charged, long count, long feePerUnit, long included, @Nullable String name, long subtotal) Constructor.- Parameters:
charged- the charged count of itemscount- the actual count of itemsfeePerUnit- the fee price per unit in tinycentsincluded- the count included for freename- the unique name of this extra feesubtotal- the subtotal in tinycents
-
-
Method Details
-
fromJson
Create a FeeExtra from a JSON object returned by the mirror node REST API.- Parameters:
feeExtra- the JSON object- Returns:
- the new FeeExtra
-
getCharged
public long getCharged()Extract the charged count of items.- Returns:
- the charged count of items
-
getCount
public long getCount()Extract the actual count of items.- Returns:
- the actual count of items
-
getFeePerUnit
public long getFeePerUnit()Extract the fee price per unit in tinycents.- Returns:
- the fee price per unit in tinycents
-
getIncluded
public long getIncluded()Extract the count included for free.- Returns:
- the count included for free
-
getName
Extract the unique name of this extra fee.- Returns:
- the unique name of this extra fee, or null if not set
-
getSubtotal
public long getSubtotal()Extract the subtotal in tinycents.- Returns:
- the subtotal in tinycents
-
toString
-
equals
-
hashCode
public int hashCode()
-