(ctx *cli.Context)
| 123 | } |
| 124 | |
| 125 | func 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 | |
| 140 | func txStatus(ctx *cli.Context) error { |
| 141 | SetRpcPort(ctx) |
nothing calls this directly
no test coverage detected