Client-side Bitcoin JavaScript library for node.js and browsers with comprehensive Bitcoin protocol support
Overall
score
99%
Build a utility module that can create, serialize, parse, and analyze Bitcoin transactions. The module should handle transaction input/output management and provide serialization capabilities for storing and transmitting transaction data.
Your implementation should provide functionality to:
src/transaction-utils.ts that exports the necessary functionsCreate test file src/transaction-utils.test.ts with the following test cases:
Create a transaction with:
fff7f7881a8099afa6940d42d1e7f6362bec38171ea3edf433541db4e4ad969f76a914389ffce9cd9ae88dcc0631e88a821ffdbe9bfe2688acVerify that:
Parse the following transaction hex:
01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac00000000Verify that:
Create a simple transaction with:
Verify that:
Create a transaction with multiple inputs and outputs:
Verify that:
Bitcoin transaction creation and manipulation library for JavaScript.
Install with Tessl CLI
npx tessl i tessl/npm-bitcoinjs-libdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10