fixnoncegap

package
v0.1.101 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	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,
	PreRunE: func(cmd *cobra.Command, args []string) (err error) {
		inputFixNonceGapArgs.rpcURL, err = flag.GetRPCURL(cmd)
		if err != nil {
			return err
		}
		inputFixNonceGapArgs.privateKey, err = flag.GetRequiredPrivateKey(cmd)
		if err != nil {
			return err
		}
		return prepareRpcClient(cmd, args)
	},
	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