Documentation
¶
Index ¶
- Constants
- func AssignMaxFeeAndLimit(gasInfo rocketpool.GasInfo, rp *rpsvc.Client, headless bool) error
- func GetHeadlessMaxFeeWei(cfg *config.RocketPoolConfig) (*big.Int, error)
- func GetHeadlessMaxFeeWeiWithLatestBlock(cfg *config.RocketPoolConfig, rp *rocketpool.RocketPool) (*big.Int, error)
- type Gas
Constants ¶
View Source
const DefaultPriorityFeeGwei float64 = 0.01
DefaultPriorityFeeGwei is the default priority fee in gwei used for automatic transactions
Variables ¶
This section is empty.
Functions ¶
func AssignMaxFeeAndLimit ¶
func GetHeadlessMaxFeeWei ¶
func GetHeadlessMaxFeeWei(cfg *config.RocketPoolConfig) (*big.Int, error)
Get the suggested max fee for service operations
func GetHeadlessMaxFeeWeiWithLatestBlock ¶ added in v1.19.0
func GetHeadlessMaxFeeWeiWithLatestBlock(cfg *config.RocketPoolConfig, rp *rocketpool.RocketPool) (*big.Int, error)
Get the suggested max fee for service operations using the latest block
Types ¶
type Gas ¶ added in v1.13.3
type Gas struct {
// contains filtered or unexported fields
}
func GetMaxFeeAndLimit ¶ added in v1.13.3
func (*Gas) GetMaxGasCostEth ¶ added in v1.19.1
func (g *Gas) GetMaxGasCostEth(gasInfo rocketpool.GasInfo) float64
GetMaxGasCostEth returns the maximum possible gas cost in ETH for the given gas info,
Click to show internal directories.
Click to hide internal directories.