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

events

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "events",
	Short:            "Utilities to read events",
	TraverseChildren: true,
}
View Source
var GetCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:   "get <event_name>",
		Short: "Get events in a block range",
		Args:  cobra.MinimumNArgs(1),
		Example: `#fetch events from the latest 10 blocks is the default behavior
flow events get A.1654653399040a61.FlowToken.TokensDeposited

#specify manual start and stop blocks
flow events get A.1654653399040a61.FlowToken.TokensDeposited --start 11559500 --end 11559600

#in order to get and event from the 20 latest blocks on a network run
flow events get A.1654653399040a61.FlowToken.TokensDeposited --last 20 --network mainnet

#if you want to fetch multiple event types that is done by sending in more events. Even fetching will be done in parallel.
flow events get A.1654653399040a61.FlowToken.TokensDeposited A.1654653399040a61.FlowToken.TokensWithdrawn
	`,
	},
	Flags: &eventsFlags,
	Run:   get,
}

Functions

This section is empty.

Types

type EventResult

type EventResult struct {
	BlockEvents []flow.BlockEvents
	Events      []flow.Event
}

func (*EventResult) JSON

func (e *EventResult) JSON() interface{}

func (*EventResult) Oneliner

func (e *EventResult) Oneliner() string

func (*EventResult) String

func (e *EventResult) String() string

Jump to

Keyboard shortcuts

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