Class FeeEstimate

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

public final class FeeEstimate extends Object
The fee estimate for a fee component (node or service).

Includes the base fee and any extras associated with it.

  • Constructor Details

    • FeeEstimate

      FeeEstimate(long base, List<FeeExtra> extras)
      Constructor.
      Parameters:
      base - the base fee price in tinycents
      extras - the list of extra fees
  • Method Details

    • fromJson

      static FeeEstimate fromJson(com.google.gson.JsonObject feeEstimate)
      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

      public List<FeeExtra> getExtras()
      Extract the list of extra fees.
      Returns:
      an unmodifiable list of extra fees
    • 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