Documentation ¶
Overview ¶
logsPkg implements the chifra logs command.
chifra logs returns the given transaction's logs. You may specify multiple transaction identifiers per invocation.
The --articulate option fetches the ABI from each encountered smart contract to better describe the reported data. The --topic and --source options allow you to filter your results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetOptions ¶
func ResetOptions(testMode bool)
Types ¶
type LogsOptions ¶
type LogsOptions struct { Transactions []string `json:"transactions,omitempty"` // A space-separated list of one or more transaction identifiers TransactionIds []identifiers.Identifier `json:"transactionIds,omitempty"` // Transaction identifiers Emitter []string `json:"emitter,omitempty"` // Filter logs to show only those logs emitted by the given address(es) Topic []string `json:"topic,omitempty"` // Filter logs to show only those with this topic(s) Articulate bool `json:"articulate,omitempty"` // Articulate the retrieved data if ABIs can be found Globals globals.GlobalOptions `json:"globals,omitempty"` // The global options Conn *rpc.Connection `json:"conn,omitempty"` // The connection to the RPC server BadFlag error `json:"badFlag,omitempty"` // An error flag if needed }
LogsOptions provides all command options for the chifra logs command.
func GetLogsOptions ¶
func GetLogsOptions(args []string, g *globals.GlobalOptions) *LogsOptions
GetLogsOptions returns the options for this tool so other tools may use it.
func GetOptions ¶
func GetOptions() *LogsOptions
func LogsFinishParseInternal ¶
func LogsFinishParseInternal(w io.Writer, values url.Values) *LogsOptions
func (*LogsOptions) HandleDecache ¶
func (opts *LogsOptions) HandleDecache(rCtx *output.RenderCtx) error
func (*LogsOptions) HandleShow ¶
func (opts *LogsOptions) HandleShow(rCtx *output.RenderCtx) error
func (*LogsOptions) LogsInternal ¶
func (opts *LogsOptions) LogsInternal(rCtx *output.RenderCtx) error
LogsInternal handles the internal workings of the logs command. Returns an error.
func (*LogsOptions) String ¶
func (opts *LogsOptions) String() string
String implements the Stringer interface
Click to show internal directories.
Click to hide internal directories.