java.lang.Object
com.hedera.hashgraph.sdk.TransactionFeeSchedule
- All Implemented Interfaces:
Cloneable
The fees for a specific transaction or query based on the fee data.
See Hedera Documentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a fee to the schedule.clone()static TransactionFeeSchedulefromBytes(byte[] bytes) Create a transaction fee schedule object from a byte array.(package private) static TransactionFeeSchedulefromProtobuf(TransactionFeeSchedule transactionFeeSchedule) Create a transaction fee schedule object from a protobuf.Deprecated.getFees()Extract the list of fee's.Extract the request type.setFeeData(FeeData feeData) Deprecated.setRequestType(RequestType requestType) Assign the request type.byte[]toBytes()Create the byte array.(package private) TransactionFeeScheduleBuild the transaction body.toString()
-
Constructor Details
-
TransactionFeeSchedule
public TransactionFeeSchedule()Constructor.
-
-
Method Details
-
fromProtobuf
Create a transaction fee schedule object from a protobuf.- Parameters:
transactionFeeSchedule- the protobuf- Returns:
- the new transaction fee schedule
-
fromBytes
public static TransactionFeeSchedule fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException Create a transaction fee schedule object from a byte array.- Parameters:
bytes- the byte array- Returns:
- the new transaction fee schedule
- Throws:
com.google.protobuf.InvalidProtocolBufferException- when there is an issue with the protobuf
-
getRequestType
Extract the request type.- Returns:
- the request type
-
setRequestType
Assign the request type.- Parameters:
requestType- the request type- Returns:
this
-
getFeeData
Deprecated.Get the total fee charged for a transaction- Returns:
- the feeData
-
setFeeData
Deprecated.Set the total fee charged for a transaction- Parameters:
feeData- the feeData to set- Returns:
this
-
getFees
Extract the list of fee's.- Returns:
- the list of fee's
-
addFee
Add a fee to the schedule.- Parameters:
fee- the fee to add- Returns:
this
-
toProtobuf
TransactionFeeSchedule toProtobuf()Build the transaction body.- Returns:
TransactionFeeSchedule
-
toString
-
toBytes
public byte[] toBytes()Create the byte array.- Returns:
- the byte array representation
-
cloneFees
-
clone
-