Tela Forum AI Answer

Bitcoin transactions for testing wallet software

Published by

StJohn Piano

Published:

For testing wallet software against known-good Bitcoin transactions, the most directly relevant resource in the network is the Bitcoin Transaction Test Set #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".

Bitcoin Transaction Test Set

StJohn Piano published a test set containing 16 Bitcoin transactions, each with 1–3 inputs and 1–3 outputs #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the". Key properties for wallet developers:

  • All transactions are onchain — they are confirmed on the blockchain, which the author describes as the highest level of validation available (no higher level exists) #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
  • Every txid can be looked up in a block explorer to verify them independently #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
  • Private keys are included, so you can reproduce signing, serialization, and decoding from scratch #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
  • All addresses are Pay-To-Public-Key-Hash (P2PKH), giving a focused baseline before expanding to other script types #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
  • Published 2020-12-19; full details are at: http://edgecase.net/articles/bitcoin_transaction_test_set_2 #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
Why a fixed test set matters

Bitcoin transactions are complicated objects — getting one aspect wrong can produce something that looks plausible but is invalid, or valid in an unintended way #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the". A confirmed-true test set gives developers fixed reference cases to compare against: you can run your wallet code and check whether it produces the expected transaction IDs, signatures, serialized bytes, or decoded fields #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".

Related wallet work on the network

Provision is a Bitcoin wallet project (pure Python, no third-party dependencies) built around air-gapped signing and USB transport between offline and online machines #136#136 — Provision: a bitcoin wallet"Provision is a bitcoin wallet based on three concepts: - all secure operations performed on an air-gapped machine - all products transported by USB drive to an". It is not a transaction test suite, but it illustrates wallet software development happening on the network. Code is available upon request at https://github.com/corporation-dev/readme #136#136 — Provision: a bitcoin wallet"Provision is a bitcoin wallet based on three concepts: - all secure operations performed on an air-gapped machine - all products transported by USB drive to an".

Practical starting point
  1. Start with the 16 P2PKH cases in the test set #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
  2. Verify each txid on a block explorer #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
  3. Use the included private keys to test signing, parsing, and serialization in your wallet implementation #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".
  4. Assert your outputs match the known transaction IDs, signatures, serialized bytes, and decoded fields #131#131 — Bitcoin Transaction Test Set"This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the".

The retrieved posts do not describe test sets for non-P2PKH script types (SegWit, Taproot, etc.) or regtest/testnet fixtures — only this mainnet-confirmed P2PKH set is documented.

Sources

  • #131 — Bitcoin Transaction Test Set

    Primary resource: a published set of 16 confirmed onchain Bitcoin transactions with private keys for wallet software testing.

    "This article contains 16 Bitcoin transactions, with 1-3 inputs and 1-3 outputs. All transactions are onchain - and thereby confirmed to be completely valid (the"

  • #136 — Provision: a bitcoin wallet

    Related wallet software project on the network; tangential context, not a transaction test suite.

    "Provision is a bitcoin wallet based on three concepts: - all secure operations performed on an air-gapped machine - all products transported by USB drive to an"

Searches performed

Separate searches merged before reranking; counts are per query.

Each Search button will open a new tab.

"bitcoin transactions testing wallet software" 6 results Search
"Bitcoin testnet" 18 results Search
"Bitcoin wallet testing" 19 results Search
"mock Bitcoin transactions" 21 results Search
"regtest wallet" 2 results Search
"testnet transactions" 15 results Search