fixnoncegap

package
v0.1.82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgPrivateKey = "private-key"
	ArgRpcURL     = "rpc-url"
	ArgReplace    = "replace"
	ArgMaxNonce   = "max-nonce"
)

Variables

View Source
var FixNonceGapCmd = &cobra.Command{
	Use:   "fix-nonce-gap",
	Short: "Send txs to fix the nonce gap for a specific account",
	Long:  fixNonceGapUsage,
	Args:  cobra.NoArgs,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		var err error
		inputFixNonceGapArgs.rpcURL = flag_loader.GetRpcUrlFlagValue(cmd)
		inputFixNonceGapArgs.privateKey, err = flag_loader.GetRequiredPrivateKeyFlagValue(cmd)
		if err != nil {
			return err
		}
		return nil
	},
	PreRunE:      prepareRpcClient,
	RunE:         fixNonceGap,
	SilenceUsage: true,
}

Functions

func WaitMineTransaction

func WaitMineTransaction(ctx context.Context, client *ethclient.Client, tx *types.Transaction, txTimeout uint64) error

Wait for the transaction to be mined

Types

type PoolContent

type PoolContent struct {
	BaseFee PoolContentTxs
	Pending PoolContentTxs
	Queued  PoolContentTxs
}

type PoolContentTxs

type PoolContentTxs map[string]map[string]any

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL