Help us shape the future of Go! Take the 2026 Go Developer Survey

fixnoncegap

package
v0.1.93 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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
		rpcURL := flag_loader.GetRpcUrlFlagValue(cmd)
		inputFixNonceGapArgs.rpcURL = *rpcURL
		privateKey, err := flag_loader.GetRequiredPrivateKeyFlagValue(cmd)
		if err != nil {
			return err
		}
		inputFixNonceGapArgs.privateKey = *privateKey
		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