txcmd

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TxCmd = &cobra.Command{
	Use:   "tx",
	Short: "Create and read transaction data or status",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

TxCmd represents the repo command

Functions

func GetCmd

func GetCmd(args *GetArgs) error

GetCmd gets a finalized transaction

Types

type GetArgs

type GetArgs struct {

	// Hash is the transaction hash
	Hash string

	// Status indicates that only the status info is requested
	Status bool

	// RpcClient is the RPC client
	RPCClient types.Client

	// GetTransaction is a function for getting a finalized transaction
	GetTransaction api.TxGetter

	Stdout io.Writer
}

GetArgs contains arguments for GetCmd.

Jump to

Keyboard shortcuts

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