Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateCost(networkSize int, feePerGas *big.Int, tx *types.Transaction) *big.Int
- func CalculateFee(networkSize int, feePerGas *big.Int, tx *types.Transaction) *big.Int
- func CalculateGas(tx *types.Transaction) int
- func CalculateMaxCost(tx *types.Transaction) *big.Int
- func GetFeePerGasForNetwork(networkSize int) *big.Int
Constants ¶
View Source
const ( SignatureAdditionalSize = 67 StoreToIpfsFeeCoef = float32(0.2) )
Variables ¶
View Source
var (
MinFeePerGas = big.NewInt(10)
)
Functions ¶
func CalculateCost ¶
func CalculateFee ¶
func CalculateGas ¶ added in v0.22.0
func CalculateGas(tx *types.Transaction) int
func CalculateMaxCost ¶ added in v0.22.0
func CalculateMaxCost(tx *types.Transaction) *big.Int
func GetFeePerGasForNetwork ¶ added in v0.22.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.