Bitcoinjs-lib: What is tx Hex ?

Created on 22 Mar 2018  路  3Comments  路  Source: bitcoinjs/bitcoinjs-lib

On line 10 when txHex is imported from hex to tx

  • what does txHex stand for ?

If it stands for Transaction in hex format, where can i find that on the block explorer ?

I'm trying to find that specific transaction in the block

  • Is this the same transaction that was propagated to the mempool before being included ?

https://github.com/bitcoinjs/bitcoinjs-lib/blob/058fa24e094ce98e6709689210d6c344a16399e3/test/integration/blocks.js#L10

how to / question / docs

Most helpful comment

The txhex is the hex format representation of a transaction; txhex is the data which is included in a block if the transaction is valid and broadcasted.

You can find the txhex you provided in the raw block dump:
https://blockchain.info/block/00000000000000000097669cdca131f24d40c4cc7d80eaa65967a2d09acf6ce6?format=hex

All 3 comments

The txhex is the hex format representation of a transaction; txhex is the data which is included in a block if the transaction is valid and broadcasted.

You can find the txhex you provided in the raw block dump:
https://blockchain.info/block/00000000000000000097669cdca131f24d40c4cc7d80eaa65967a2d09acf6ce6?format=hex

Thanks @dakk @junderw

The TxHex is a portion of the raw block dump here.

On using the tx Decoder, I got the transaction output address that checks out correctly.
The input script, output script, data_hex are a part of the transaction hex.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

panpan2 picture panpan2  路  3Comments

dakk picture dakk  路  3Comments

askucher picture askucher  路  3Comments

thrastarson picture thrastarson  路  3Comments

coingeek picture coingeek  路  4Comments