Class FeeEstimateResponse

java.lang.Object
com.hedera.hashgraph.sdk.FeeEstimateResponse

public final class FeeEstimateResponse extends Object
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 Details

    • FeeEstimateResponse

      FeeEstimateResponse(@Nullable NetworkFee network, @Nullable FeeEstimate node, long highVolumeMultiplier, @Nullable FeeEstimate service, long total)
      Constructor.
      Parameters:
      network - the network fee component
      node - the node fee estimate
      highVolumeMultiplier - the high-volume throttle multiplier
      service - the service fee estimate
      total - the total fee in tinycents
  • Method Details

    • fromJson

      static FeeEstimateResponse fromJson(String json)
      Create a FeeEstimateResponse from a REST JSON payload.
      Parameters:
      json - the raw JSON response
      Returns:
      the new FeeEstimateResponse
    • getNetwork

      @Nullable public NetworkFee getNetwork()
      Extract the network fee component.
      Returns:
      the network fee component, or null if not set
    • getNode

      @Nullable public FeeEstimate 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

      @Nullable public FeeEstimate 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object