Documentation ¶
Overview ¶
Package receiptsPkg handles the chifra receipts command. It returns the given transaction's receipt. You may specify multiple transaction identifiers per invocation. The --articulate option fetches the ABI from each encountered smart contract (including those encountered in a trace--if the --trace option is enabled) to better describe the reported data. Generally speaking, this tool is less useful than others as you may report the same data using chifra transactions and more focused data using chifra logs. It is included here for completeness, as the receipt is a fundamental data structure in Ethereum.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetOptions ¶
func ResetOptions(testMode bool)
func RunReceipts ¶
RunReceipts handles the receipts command for the command line. Returns error only as per cobra.
func ServeReceipts ¶
func ServeReceipts(w http.ResponseWriter, r *http.Request) error
ServeReceipts handles the receipts command for the API. Returns an error.
Types ¶
type ReceiptsOptions ¶
type ReceiptsOptions struct { Transactions []string `json:"transactions,omitempty"` // A space-separated list of one or more transaction identifiers TransactionIds []identifiers.Identifier `json:"transactionIds,omitempty"` // Transaction identifiers 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 }
ReceiptsOptions provides all command options for the chifra receipts command.
func GetOptions ¶
func GetOptions() *ReceiptsOptions
func GetReceiptsOptions ¶
func GetReceiptsOptions(args []string, g *globals.GlobalOptions) *ReceiptsOptions
GetReceiptsOptions returns the options for this tool so other tools may use it.
func (*ReceiptsOptions) HandleDecache ¶
func (opts *ReceiptsOptions) HandleDecache() error
func (*ReceiptsOptions) HandleShow ¶
func (opts *ReceiptsOptions) HandleShow() error
func (*ReceiptsOptions) ReceiptsInternal ¶
func (opts *ReceiptsOptions) ReceiptsInternal() error
ReceiptsInternal handles the internal workings of the receipts command. Returns an error.
func (*ReceiptsOptions) String ¶
func (opts *ReceiptsOptions) String() string
String implements the Stringer interface