{"id":16325470,"url":"https://github.com/tynes/tx-debugger","last_synced_at":"2025-09-14T07:20:32.456Z","repository":{"id":104848532,"uuid":"122783807","full_name":"tynes/tx-debugger","owner":"tynes","description":"Transaction Debugger","archived":false,"fork":false,"pushed_at":"2015-04-29T04:27:48.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T21:16:27.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tynes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-24T22:04:14.000Z","updated_at":"2021-03-06T22:48:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"51a52fb8-1b25-4446-9177-08e41e175395","html_url":"https://github.com/tynes/tx-debugger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tynes/tx-debugger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tynes%2Ftx-debugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tynes%2Ftx-debugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tynes%2Ftx-debugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tynes%2Ftx-debugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tynes","download_url":"https://codeload.github.com/tynes/tx-debugger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tynes%2Ftx-debugger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275075328,"owners_count":25401208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T23:05:07.034Z","updated_at":"2025-09-14T07:20:32.428Z","avatar_url":"https://github.com/tynes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tx-debugger\n===========\n\nIs your bitcoin wallet software producing a transaction which is being rejected\nfrom the network, and you don't know why? Are you submitting it to bitcoind and\ngetting \"Error Code -22\" and wondering what the hell that means? tx-debugger\ncan help you debug your transaction. It will parse your transaction, retrieve\nthe inputs automatically using the BitGo API, run a script interpreter on the\ninputs, and finally run the equivalent of bitcoind's CheckTransction method.\ntx-debugger will tell you where it encountered an error. If your transaction\npasses all the tests, then it is valid. A valid transaction may be rejected by\nthe network if a double-spend transaction also appears in the blockchain - so\nif your transaction is valid, and still doesn't broadcast, it may be because of\na double-spend.\n\nTry this example of using tx-debugger with a real transaction:\n\n```\n./bin/tx-debugger.js 0100000001795b88d47a74e3be0948fc9d1b4737f96097474d57151afa6f77c787961e47cc120000006a47304402202289f9e1ae2ed981cd0bf62f822f6ae4aea40c65c7339d90643cea90de93ad1502205c8a08b3265f9ba7e99057d030d5b91c889a1b99f94a3a5b79d7daaada2409b6012103798b51f980e7a3690af6b43ce3467db75bede190385702c4d9d48c0a735ff4a9ffffffff01c0a83200000000001976a91447b8e62e008f82d95d1f565055a8243cc243d32388ac00000000\n```\n\nOutput:\n\n```\nTransaction parsed successfully. Gathering inputs.\nGathered input 0 of id cc471e9687c7776ffa1a15574d479760f937471b9dfc4809bee3747ad4885b79\nFound input 0 on mainnet\nScript interpreter result for input 0: success\nCheck transaction (script interpreter plus other validations): success\n```\n\nSuppose you had gotten the input hashes in reverse, a very common mistake:\n\n```\n./bin/tx-debugger.js 0100000001cc471e9687c7776ffa1a15574d479760f937471b9dfc4809bee3747ad4885b79120000006a47304402202289f9e1ae2ed981cd0bf62f822f6ae4aea40c65c7339d90643cea90de93ad1502205c8a08b3265f9ba7e99057d030d5b91c889a1b99f94a3a5b79d7daaada2409b6012103798b51f980e7a3690af6b43ce3467db75bede190385702c4d9d48c0a735ff4a9ffffffff01c0a83200000000001976a91447b8e62e008f82d95d1f565055a8243cc243d32388ac00000000\n```\n\nOutput:\n\n```\nTransaction parsed successfully. Gathering inputs.\nGathered input 0 of id cc471e9687c7776ffa1a15574d479760f937471b9dfc4809bee3747ad4885b79\nFound input 0 on mainnet\nError: Input 0 had a reversed hash. Must reverse hash to validate.\nProceeding with additional checks in spite of invalid hash.\nScript interpreter result for input 0: success\nCheck transaction (script interpreter plus other validations): success\n```\n\ntx-debugger will automatically determine whether your transaction is on mainnet\nor testnet by trying to find it first on the mainnet blockchain and then on the\ntestnet blockchain. Here's an example of a real testnet transaction:\n\n```\n./bin/tx-debugger.js 0100000002e0ea20bcae15a3d63d54cdafc92fea4923f7929e3ea36191522cac87c9fb9356010000006a47304402204a509176ec9634879f5487519b0fbf143936da3d94b887027a9b79182569c79f02206dad3fd761902c1585d6fab841e99aea1dbec735f4e20d4142b1f32cbd1113e701210261bf95c276fdda74106b93d4f3c4923134eccb380b598ddb6cdb7f798a4fdccfffffffffe799ebe4c2e62529195cff4f646faecd49d81ab41a2cd7bf54ba9b481a7b9bdc000000006b483045022100e39bb72c458eefdad89e7040359c12dd90b725a4d525100e1af294efc4e50544022047292abfd2d778fa8f7038c2238bd9c6376a34d65aaccaa860d459c30f5effc1012103301f9cd833888f5e5e7f1d15c5d8181a6c97f481f99b234ab5fca2bc4809a189ffffffff02f2121d860000000017a914805fd258cd7c8cf8249339fb01ed19fb7533ecce87c3295001000000001976a914522fef9fbe6df4d90ad8140d92a418dfbb57a34688ac00000000\n```\n\nOutput:\n\n```\nTransaction parsed successfully. Gathering inputs.\nGathered input 1 of id dc9b7b1a489bba54bfd72c1ab41ad849cdae6f644fff5c192925e6c2e4eb99e7\nFound input 1 on testnet\nGathered input 0 of id 5693fbc987ac2c529161a33e9e92f72349ea2fc9afcd543dd6a315aebc20eae0\nFound input 0 on testnet\nScript interpreter result for input 0: success\nScript interpreter result for input 1: success\nCheck transaction (script interpreter plus other validations): success\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftynes%2Ftx-debugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftynes%2Ftx-debugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftynes%2Ftx-debugger/lists"}