java.lang.Object
com.hedera.hashgraph.sdk.FeeSchedules
This contains two Fee Schedules with expiry timestamp.
See Hedera Documentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeeSchedulesfromBytes(byte[] bytes) Create a fee schedules object from a byte array.(package private) static FeeSchedulesfromProtobuf(CurrentAndNextFeeSchedule feeSchedules) Create a fee schedules object from a protobuf.Extract the current fee schedule.getNext()Extract the next fee schedule.setCurrent(FeeSchedule current) Assign the current fee schedule.setNext(FeeSchedule next) Assign the next fee schedule.byte[]toBytes()Create the byte array.(package private) CurrentAndNextFeeScheduleCreate the protobuf.toString()
-
Constructor Details
-
FeeSchedules
public FeeSchedules()Constructor.
-
-
Method Details
-
fromProtobuf
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
Extract the current fee schedule.- Returns:
- the current fee schedule
-
setCurrent
Assign the current fee schedule.- Parameters:
current- the fee schedule- Returns:
this
-
getNext
Extract the next fee schedule.- Returns:
- the next fee schedule
-
setNext
Assign the next fee schedule.- Parameters:
next- the fee schedule- Returns:
this
-
toProtobuf
CurrentAndNextFeeSchedule toProtobuf()Create the protobuf.- Returns:
- protobuf representation
-
toBytes
public byte[] toBytes()Create the byte array.- Returns:
- byte array representation
-
toString
-