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

sendtx

package
v0.1.116 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SendtxCmd = &cobra.Command{
	Use:   "sendtx",
	Short: "Send raw transactions to a JSON-RPC endpoint in batches.",
	Long:  usage,
	Args:  cobra.NoArgs,
	PreRunE: func(cmd *cobra.Command, _ []string) error {
		var err error
		params.rpcURL, err = flag.GetRequiredRPCURL(cmd)
		if err != nil {
			return err
		}
		if params.concurrency <= 0 {
			params.concurrency = runtime.NumCPU()
		}
		if params.batchSize <= 0 {
			return fmt.Errorf("batch-size must be positive")
		}
		return nil
	},
	RunE: func(cmd *cobra.Command, _ []string) error {
		return runSendTx(cmd.Context())
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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