Class FeeSchedules

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

public class FeeSchedules extends Object
This contains two Fee Schedules with expiry timestamp. See Hedera Documentation
  • Constructor Details

    • FeeSchedules

      public FeeSchedules()
      Constructor.
  • Method Details

    • fromProtobuf

      static FeeSchedules fromProtobuf(CurrentAndNextFeeSchedule feeSchedules)
      Create a fee schedules object from a protobuf.
      Parameters:
      feeSchedules - the protobuf
      Returns:
      the fee schedules object
    • fromBytes

      public static FeeSchedules fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException
      Create a fee schedules object from a byte array.
      Parameters:
      bytes - the byte array
      Returns:
      the fee schedules object
      Throws:
      com.google.protobuf.InvalidProtocolBufferException - when there is an issue with the protobuf
    • getCurrent

      @Nullable public FeeSchedule getCurrent()
      Extract the current fee schedule.
      Returns:
      the current fee schedule
    • setCurrent

      public FeeSchedules setCurrent(@Nullable FeeSchedule current)
      Assign the current fee schedule.
      Parameters:
      current - the fee schedule
      Returns:
      this
    • getNext

      @Nullable public FeeSchedule getNext()
      Extract the next fee schedule.
      Returns:
      the next fee schedule
    • setNext

      public FeeSchedules setNext(@Nullable FeeSchedule next)
      Assign the next fee schedule.
      Parameters:
      next - the fee schedule
      Returns:
      this
    • toProtobuf

      Create the protobuf.
      Returns:
      protobuf representation
    • toBytes

      public byte[] toBytes()
      Create the byte array.
      Returns:
      byte array representation
    • toString

      public String toString()
      Overrides:
      toString in class Object