java.lang.Object
com.hedera.hashgraph.sdk.FeeEstimateResponse
The response containing the estimated transaction fees.
This response provides a breakdown of the network, node, and service fees, along with the total estimated cost in tinycents.
-
Constructor Summary
ConstructorsConstructorDescriptionFeeEstimateResponse(NetworkFee network, FeeEstimate node, long highVolumeMultiplier, FeeEstimate service, long total) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) static FeeEstimateResponseCreate a FeeEstimateResponse from a REST JSON payload.longExtract the high-volume throttle multiplier.Extract the network fee component.getNode()Extract the node fee estimate.Extract the service fee estimate.longgetTotal()Extract the total fee in tinycents.inthashCode()toString()
-
Constructor Details
-
FeeEstimateResponse
FeeEstimateResponse(@Nullable NetworkFee network, @Nullable FeeEstimate node, long highVolumeMultiplier, @Nullable FeeEstimate service, long total) Constructor.- Parameters:
network- the network fee componentnode- the node fee estimatehighVolumeMultiplier- the high-volume throttle multiplierservice- the service fee estimatetotal- the total fee in tinycents
-
-
Method Details
-
fromJson
Create a FeeEstimateResponse from a REST JSON payload.- Parameters:
json- the raw JSON response- Returns:
- the new FeeEstimateResponse
-
getNetwork
Extract the network fee component.- Returns:
- the network fee component, or null if not set
-
getNode
Extract the node fee estimate.- Returns:
- the node fee estimate, or null if not set
-
getHighVolumeMultiplier
public long getHighVolumeMultiplier()Extract the high-volume throttle multiplier.- Returns:
- the high-volume multiplier
-
getService
Extract the service fee estimate.- Returns:
- the service fee estimate, or null if not set
-
getTotal
public long getTotal()Extract the total fee in tinycents.- Returns:
- the total fee in tinycents
-
toString
-
equals
-
hashCode
public int hashCode()
-