public class FeeUtils
extends java.lang.Object
| Constructor and Description |
|---|
FeeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static long |
calcNetworkFeeForMultiSig(int signingThreshold,
int nrOfAccounts)
Calculates the network fee (GAS) required for the verification of a multi-account signature
with the given signing threshold and number of involved accounts.
|
static long |
calcNetworkFeeForSingleSig()
Calculates the network fee (GAS) required for the verification of a single-account
signature.
|
static long |
calcTransactionSizeFee(int size)
Calculates the network fee (GAS) for a transaction of the given size in bytes.
|
public static long calcNetworkFeeForSingleSig()
This does not include any fee for byte size.
public static long calcNetworkFeeForMultiSig(int signingThreshold,
int nrOfAccounts)
This does not include any fee for byte size.
signingThreshold - The signing threshold of the multi-sig account.nrOfAccounts - The number of accounts involved in the multi-sig account.public static long calcTransactionSizeFee(int size)
size - The size in bytes.