Bitcoin Transaction Decoder

A simple JavaScript tool for decoding Bitcoin transactions and associated Mocha tests. Overview

The decoder.js script gives an implementation for decoding Bitcoin transactions with bitcoinjs-lib library for transaction decoding.

Installation

  1. Clone the repository:

     git clone https://github.com/fahadkabali/TransactionDecoder.git
    
  2. Change into the project directory:

     cd bitcoin-transaction-decoder
    
  3. Install dependencies:

     npm install
    
  4. Decoding Bitcoin Transactions Use the provided script to decode a Bitcoin transaction or replace with the actual hex value of your transaction.

        node decoder.js 
    
  5. Running Tests The project folder includes Mocha tests to ensure the correctness of the decoder.

        npm test