Skip to content

Commit 86e755e

Browse files
committed
2 parents c254024 + 8b88589 commit 86e755e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

transaction/transaction.go

+4
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ func (tx *Transaction) Bytes() []byte {
289289
return tx.toBytesHelper(0, nil, false)
290290
}
291291

292+
func (tx *Transaction) Hex() string {
293+
return hex.EncodeToString(tx.Bytes())
294+
}
295+
292296
// EF outputs the transaction into a byte array in extended format
293297
// (with PreviousTxSatoshis and SourceTxScript included)
294298
func (tx *Transaction) EF() ([]byte, error) {

0 commit comments

Comments
 (0)