public class FeeCalculationServiceImpl extends java.lang.Object implements FeeCalculationService
| Constructor and Description |
|---|
FeeCalculationServiceImpl(TransactionHelperService transactionHelperService,
EpochService epochService) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
calculateFee(byte[] transaction)
Calculate estimated fee for a transaction.
|
java.math.BigInteger |
calculateFee(byte[] transaction,
ProtocolParams protocolParams)
Calculate estimated fee for a transaction.
|
java.math.BigInteger |
calculateFee(java.util.List<PaymentTransaction> paymentTransactions,
TransactionDetailsParams detailsParams,
Metadata metadata)
Calculate estimated fee for a list of payment transactions
|
java.math.BigInteger |
calculateFee(java.util.List<PaymentTransaction> paymentTransactions,
TransactionDetailsParams detailsParams,
Metadata metadata,
ProtocolParams protocolParams)
Calculate estimated fee for a list of payment transactions
|
java.math.BigInteger |
calculateFee(MintTransaction mintTransaction,
TransactionDetailsParams detailsParams,
Metadata metadata)
Calculate estimated fee for a token mint transaction
|
java.math.BigInteger |
calculateFee(MintTransaction mintTransaction,
TransactionDetailsParams detailsParams,
Metadata metadata,
ProtocolParams protocolParams)
Calculate estimated fee for a token mint transaction
|
java.math.BigInteger |
calculateFee(PaymentTransaction paymentTransaction,
TransactionDetailsParams detailsParams,
Metadata metadata)
Calculate estimated fee for a payment transaction
|
java.math.BigInteger |
calculateFee(PaymentTransaction paymentTransaction,
TransactionDetailsParams detailsParams,
Metadata metadata,
ProtocolParams protocolParams)
Calculate estimated fee for a payment transaction
|
java.math.BigInteger |
calculateFee(Transaction transaction)
Calculate estimated fee for a transaction.
|
java.math.BigInteger |
calculateFee(Transaction transaction,
ProtocolParams protocolParams)
Calculate estimated fee for a transaction.
|
java.math.BigInteger |
calculateScriptFee(java.util.List<ExUnits> exUnitsList)
Calculate script fee from execution units
|
java.math.BigInteger |
calculateScriptFee(java.util.List<ExUnits> exUnitsList,
ProtocolParams protocolParams)
Calculate script fee from execution units
|
public FeeCalculationServiceImpl(TransactionHelperService transactionHelperService, EpochService epochService)
public java.math.BigInteger calculateFee(PaymentTransaction paymentTransaction, TransactionDetailsParams detailsParams, Metadata metadata) throws ApiException, CborSerializationException, AddressExcepion
FeeCalculationServicecalculateFee in interface FeeCalculationServiceApiExceptionCborSerializationExceptionAddressExcepionpublic java.math.BigInteger calculateFee(PaymentTransaction paymentTransaction, TransactionDetailsParams detailsParams, Metadata metadata, ProtocolParams protocolParams) throws CborSerializationException, AddressExcepion, ApiException
FeeCalculationServicecalculateFee in interface FeeCalculationServiceCborSerializationExceptionAddressExcepionApiExceptionpublic java.math.BigInteger calculateFee(MintTransaction mintTransaction, TransactionDetailsParams detailsParams, Metadata metadata) throws ApiException, CborSerializationException, AddressExcepion
FeeCalculationServicecalculateFee in interface FeeCalculationServiceApiExceptionCborSerializationExceptionAddressExcepionpublic java.math.BigInteger calculateFee(MintTransaction mintTransaction, TransactionDetailsParams detailsParams, Metadata metadata, ProtocolParams protocolParams) throws ApiException, CborSerializationException, AddressExcepion
FeeCalculationServicecalculateFee in interface FeeCalculationServiceApiExceptionCborSerializationExceptionAddressExcepionpublic java.math.BigInteger calculateFee(Transaction transaction) throws ApiException, CborSerializationException
FeeCalculationServicecalculateFee in interface FeeCalculationServicetransaction - Signed transactionApiExceptionCborSerializationExceptionpublic java.math.BigInteger calculateFee(Transaction transaction, ProtocolParams protocolParams) throws CborSerializationException
FeeCalculationServicecalculateFee in interface FeeCalculationServicetransaction - Signed transactionCborSerializationExceptionpublic java.math.BigInteger calculateFee(byte[] transaction)
throws ApiException
FeeCalculationServicecalculateFee in interface FeeCalculationServicetransaction - Signed transaction serialized bytesApiExceptionpublic java.math.BigInteger calculateFee(byte[] transaction,
ProtocolParams protocolParams)
FeeCalculationServicecalculateFee in interface FeeCalculationServicetransaction - Signed transaction serialized bytespublic java.math.BigInteger calculateFee(java.util.List<PaymentTransaction> paymentTransactions, TransactionDetailsParams detailsParams, Metadata metadata) throws ApiException, CborSerializationException, AddressExcepion
FeeCalculationServicecalculateFee in interface FeeCalculationServiceApiExceptionCborSerializationExceptionAddressExcepionpublic java.math.BigInteger calculateFee(java.util.List<PaymentTransaction> paymentTransactions, TransactionDetailsParams detailsParams, Metadata metadata, ProtocolParams protocolParams) throws CborSerializationException, AddressExcepion, ApiException
FeeCalculationServicecalculateFee in interface FeeCalculationServiceCborSerializationExceptionAddressExcepionApiExceptionpublic java.math.BigInteger calculateScriptFee(java.util.List<ExUnits> exUnitsList) throws ApiException
FeeCalculationServicecalculateScriptFee in interface FeeCalculationServiceApiExceptionpublic java.math.BigInteger calculateScriptFee(java.util.List<ExUnits> exUnitsList, ProtocolParams protocolParams)
FeeCalculationServicecalculateScriptFee in interface FeeCalculationService