Decode Bitcoin Transaction Hex Decoder

This Node.js script decodes a Bitcoin transaction hex, providing details such as version, inputs, outputs, and locktime. Additionally, a sample test script is included to validate the decoding functionality.

Prerequisites

  • Node.js installed (https://nodejs.org/)
  • npm (Node Package Manager) installed (included with Node.js)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/bitcoin-transaction-decoder.git
  2. Navigate to the project directory:

    cd bitcoin-transaction-decoder
  3. Install dependencies:

    npm install

Usage

Run the script:

node index.js

Test

To run the test script:

npm test

Dependencies bitcoinjs-lib: A library for Bitcoin-related functions. Contributing Contributions are welcome! Feel free to open issues or submit pull requests.