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

importtx

package
v1.26.42 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	URIKey                = "uri"
	SourceURIsKey         = "source-uris"
	SourceChainIDKey      = "source-chain-id"
	DestinationChainIDKey = "destination-chain-id"
	TxIDKey               = "tx-id"
	MaxFeeKey             = "max-fee"
	PrivateKeyKey         = "private-key"
)

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

func Command

func Command() *cobra.Command

func Import

func Import(ctx context.Context, config *Config) (*status.TxIssuance, error)

Types

type Config

type Config struct {
	URI                string
	SourceURIs         []string
	SourceChainID      string
	DestinationChainID string
	TxID               ids.ID
	MaxFee             uint64
	PrivateKey         *secp256k1.PrivateKey
}

func ParseFlags

func ParseFlags(flags *pflag.FlagSet, args []string) (*Config, error)

Jump to

Keyboard shortcuts

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