diff --git a/cmd/pushtx/main.go b/cmd/pushtx/main.go index fe4540f05b..87fce39a57 100644 --- a/cmd/pushtx/main.go +++ b/cmd/pushtx/main.go @@ -92,6 +92,8 @@ func run(args []string, stdin io.Reader) error { if err != nil { return fmt.Errorf("invalid hex data: %w", err) } + // Normalize to 0x-prefixed form for consistent output. + txHex = "0x" + hex.EncodeToString(rawTx) // Decode the transaction so we can display a summary. var tx types.Transaction