MCPcopy Create free account
hub / github.com/DNAProject/DNA / txInfo

Function txInfo

cmd/info_cmd.go:125–138  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

123}
124
125func txInfo(ctx *cli.Context) error {
126 SetRpcPort(ctx)
127 if ctx.NArg() < 1 {
128 PrintErrorMsg("Missing argument. TxHash expected.")
129 cli.ShowSubcommandHelp(ctx)
130 return nil
131 }
132 txInfo, err := utils.GetRawTransaction(ctx.Args().First())
133 if err != nil {
134 return fmt.Errorf("GetRawTransaction error:%s", err)
135 }
136 PrintJsonData(txInfo)
137 return nil
138}
139
140func txStatus(ctx *cli.Context) error {
141 SetRpcPort(ctx)

Callers

nothing calls this directly

Calls 6

GetRawTransactionFunction · 0.92
SetRpcPortFunction · 0.85
PrintErrorMsgFunction · 0.85
PrintJsonDataFunction · 0.85
ErrorfMethod · 0.80
FirstMethod · 0.65

Tested by

no test coverage detected