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

scripts

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "scripts",
	Short:            "Execute Cadence scripts",
	TraverseChildren: true,
	GroupID:          "interactions",
}

Functions

func SendScript added in v1.4.0

func SendScript(code []byte, argsArr []string, location string, flow flowkit.Services, scriptFlags Flags) (command.Result, error)

Types

type Flags added in v1.4.0

type Flags struct {
	ArgsJSON    string `default:"" flag:"args-json" info:"arguments in JSON-Cadence format"`
	BlockID     string `default:"" flag:"block-id" info:"block ID to execute the script at"`
	BlockHeight uint64 `default:"" flag:"block-height" info:"block height to execute the script at"`
}

Jump to

Keyboard shortcuts

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