Class NetworkFee

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

public final class NetworkFee extends Object
The network fee component which covers the cost of gossip, consensus, signature verifications, fee payment, and storage.
  • Constructor Details

    • NetworkFee

      NetworkFee(int multiplier, long subtotal)
      Constructor.
      Parameters:
      multiplier - the network fee multiplier
      subtotal - the network fee subtotal in tinycents
  • Method Details

    • fromJson

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

      public String toString()
      Overrides:
      toString in class Object