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.
-
Clone the repository:
git clone https://github.com/fahadkabali/TransactionDecoder.git
-
Change into the project directory:
cd bitcoin-transaction-decoder
-
Install dependencies:
npm install
-
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
-
Running Tests The project folder includes Mocha tests to ensure the correctness of the decoder.
npm test