transactions

package
v1.0.0-beta01 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "build <code filename>  [<argument> <argument> ...]",
		Short:   "Build an unsigned transaction",
		Example: `flow transactions build ./transaction.cdc "Hello" --proposer alice --authorizer alice --payer bob`,
		Args:    cobra.MinimumNArgs(1),
	},
	Flags: &buildFlags,
	RunS:  build,
}
View Source
var Cmd = &cobra.Command{
	Use:              "transactions",
	Short:            "Build, sign, send and retrieve transactions",
	TraverseChildren: true,
	GroupID:          "interactions",
}
View Source
var DecodeCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "decode <transaction filename>",
		Short:   "Decode a transaction",
		Example: "flow transactions decode ./transaction.rlp",
		Args:    cobra.ExactArgs(1),
	},
	Flags: &decodeFlags,
	Run:   decode,
}
View Source
var GetCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "get <tx_id>",
		Aliases: []string{"status"},
		Short:   "Get the transaction by ID",
		Example: "flow transactions get 07a8...b433",
		Args:    cobra.ExactArgs(1),
	},
	Flags: &getFlags,
	Run:   get,
}
View Source
var SendCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "send <code filename> [<argument> <argument> ...]",
		Short:   "Send a transaction",
		Args:    cobra.MinimumNArgs(1),
		Example: `flow transactions send tx.cdc "Hello world"`,
	},
	Flags: &sendFlags,
	RunS:  send,
}
View Source
var SendSignedCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "send-signed <signed transaction filename>",
		Short:   "Send signed transaction",
		Args:    cobra.ExactArgs(1),
		Example: `flow transactions send-signed signed.rlp`,
	},
	Flags: &sendSignedFlags,
	Run:   sendSigned,
}
View Source
var SignCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "sign [<built transaction filename> | --from-remote-url <url>]",
		Short:   "Sign built transaction",
		Example: "flow transactions sign ./built.rlp --signer alice",
		Args:    cobra.MaximumNArgs(1),
	},
	Flags: &signFlags,
	RunS:  sign,
}

Functions

This section is empty.

Types

type TransactionResult

type TransactionResult struct {
	// contains filtered or unexported fields
}

func (*TransactionResult) JSON

func (r *TransactionResult) JSON() interface{}

func (*TransactionResult) Oneliner

func (r *TransactionResult) Oneliner() string

func (*TransactionResult) String

func (r *TransactionResult) String() string

Jump to

Keyboard shortcuts

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