Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251["-create",252"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",253"replaceable=1"],254"return_code": 1,255"error_txt": "error: Invalid TX input index",256"description": "Tests the check for an invalid positive out-of-bounds input index with replaceable"257},258{259"exec": "./bitcoin-tx",260"args":261["-create",262"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",263"replaceable=0"],264"output_cmp": "txreplacesingleinput.hex",265"description": "Tests that the 'SEQUENCE' value for a single input is set to fdffffff for single input"266},267{268"exec": "./bitcoin-tx",269"args":270["-create",271"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",272"replaceable="],273"output_cmp": "txreplacesingleinput.hex",274"description": "Tests that the 'SEQUENCE' value for a single input is set to fdffffff when N omitted"275},276{277"exec": "./bitcoin-tx",278"args":279["-create",280"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",281"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",282"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",283"replaceable=1"],284"output_cmp": "txreplace1.hex",285"description": "Tests that only the 'SEQUENCE' value of input[1] is set to fdffffff"286},287{288"exec": "./bitcoin-tx",289"args":290["-create",291"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",292"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",293"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",294"replaceable="],295"output_cmp": "txreplaceomittedn.hex",296"description": "Tests that the 'SEQUENCE' value for each input is set to fdffffff when N omitted"297},298{299"exec": "./bitcoin-tx",300"args":301["-create",302"replaceable="],303"output_cmp": "txreplacenoinputs.hex",304"description": "Tests behavior when no inputs are provided in the transaction"305},306{307"exec": "./bitcoin-tx",308"args":309["-create",310"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:abcdef00",311"replaceable="],312"return_code": 1,313"error_txt": "error: invalid TX sequence id 'abcdef00'",314"description": "Try to make invalid input replaceable"315},316{ "exec": "./bitcoin-tx",317"args":318["-create",319"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:+0"],320"return_code": 1,321"error_txt": "error: invalid TX input vout",322"description": "Tests the check for an invalid vout value when adding an input"323},324{ "exec": "./bitcoin-tx",325"args":326["-create",327"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0x"],328"return_code": 1,329"error_txt": "error: invalid TX input vout",330"description": "Tests the check for an invalid vout value when adding an input"331},332{ "exec": "./bitcoin-tx",333"args":334["-create",335"outaddr=1"],336"return_code": 1,337"error_txt": "error: TX output missing or too many separators",338"description": "Malformed outaddr argument (no address specified). Expected to fail."339},340{ "exec": "./bitcoin-tx",341"args":342["-create",343"outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage"],344"return_code": 1,345"error_txt": "error: TX output missing or too many separators",346"description": "Malformed outaddr argument (too many separators). Expected to fail."347},348{ "exec": "./bitcoin-tx",349"args":350["-create",351"outpubkey=0"],352"return_code": 1,353"error_txt": "error: TX output missing or too many separators",354"description": "Malformed outpubkey argument (no pubkey specified). Expected to fail."355},356{ "exec": "./bitcoin-tx",357"args":358["-create",359"outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W:non53nse"],360"return_code": 1,361"error_txt": "error: TX output missing or too many separators",362"description": "Malformed outpubkey argument (too many separators). Expected to fail."363},364{ "exec": "./bitcoin-tx",365"args":366["-create",367"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",368"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",369"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",370"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",371"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],372"output_cmp": "txcreate1.hex",373"description": "Creates a new transaction with three inputs and two outputs"374},375{ "exec": "./bitcoin-tx",376"args":377["-json",378"-create",379"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",380"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",381"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",382"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",383"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],384"output_cmp": "txcreate1.json",385"description": "Creates a new transaction with three inputs and two outputs (output in json)"386},387{ "exec": "./bitcoin-tx",388"args": ["-create", "outscript=0:"],389"output_cmp": "txcreate2.hex",390"description": "Creates a new transaction with a single empty output script"391},392{ "exec": "./bitcoin-tx",393"args": ["-json", "-create", "outscript=0:"],394"output_cmp": "txcreate2.json",395"description": "Creates a new transaction with a single empty output script (output in json)"396},397{ "exec": "./bitcoin-tx",398"args": ["02000000000100000000000000000000000000"],399"output_cmp": "txcreate2.hex",400"description": "Parses a transaction with no inputs and a single output script"401},402{ "exec": "./bitcoin-tx",403"args": ["-json", "02000000000100000000000000000000000000"],404"output_cmp": "txcreate2.json",405"description": "Parses a transaction with no inputs and a single output script (output in json)"406},407{ "exec": "./bitcoin-tx",408"args": ["-create", "outscript=0:123badscript"],409"return_code": 1,410"error_txt": "error: script parse error: unknown opcode",411"description": "Create a new transaction with an invalid output script"412},413{ "exec": "./bitcoin-tx",414"args": ["-create", "outscript=0:OP_DROP", "nversion=1"],415"output_cmp": "txcreatescript1.hex",416"description": "Create a new transaction with a single output script (OP_DROP)"417},418{ "exec": "./bitcoin-tx",419"args": ["-json", "-create", "outscript=0:OP_DROP", "nversion=1"],420"output_cmp": "txcreatescript1.json",421"description": "Create a new transaction with a single output script (OP_DROP) (output as json)"422},423{ "exec": "./bitcoin-tx",424"args": ["-create", "outscript=0:OP_DROP:S", "nversion=1"],425"output_cmp": "txcreatescript2.hex",426"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH"427},428{ "exec": "./bitcoin-tx",429"args": ["-json", "-create", "outscript=0:OP_DROP:S", "nversion=1"],430"output_cmp": "txcreatescript2.json",431"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)"432},433{ "exec": "./bitcoin-tx",434"args": ["-create", "outscript=0:OP_DROP:W", "nversion=1"],435"output_cmp": "txcreatescript3.hex",436"description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH"437},438{ "exec": "./bitcoin-tx",439"args": ["-json", "-create", "outscript=0:OP_DROP:W", "nversion=1"],440"output_cmp": "txcreatescript3.json",441"description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH (output as json)"442},443{ "exec": "./bitcoin-tx",444"args": ["-create", "outscript=0:OP_DROP:WS", "nversion=1"],445"output_cmp": "txcreatescript4.hex",446"description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH, wrapped in a P2SH"447},448{ "exec": "./bitcoin-tx",449"args": ["-json", "-create", "outscript=0:OP_DROP:WS", "nversion=1"],450"output_cmp": "txcreatescript4.json",451"description": "Create a new transaction with a single output script (OP_DROP) in a P2SH, wrapped in a P2SH (output as json)"452},453{ "exec": "./bitcoin-tx",454"args": ["-create", "outscript=0:999999999999999999999999999999"],455"return_code": 1,456"error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF",457"description": "Try to parse an output script with a decimal number above the allowed range"458},459{ "exec": "./bitcoin-tx",460"args": ["-create", "outscript=0:9999999999"],461"return_code": 1,462"error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF",463"description": "Try to parse an output script with a decimal number above the allowed range"464},465{ "exec": "./bitcoin-tx",466"args": ["-create", "outscript=0:4294967296"],467"return_code": 1,468"error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF",469"description": "Try to parse an output script with a decimal number just above the allowed range"470},471{ "exec": "./bitcoin-tx",472"args": ["-create", "outscript=0:4294967295"],473"output_cmp": "txcreatescript5.hex",474"description": "Try to parse an output script with a decimal number at the upper limit of the allowed range"475},476{ "exec": "./bitcoin-tx",477"args": ["-create", "outscript=0:-9999999999"],478"return_code": 1,479"error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF",480"description": "Try to parse an output script with a decimal number below the allowed range"481},482{ "exec": "./bitcoin-tx",483"args": ["-create", "outscript=0:-4294967296"],484"return_code": 1,485"error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF",486"description": "Try to parse an output script with a decimal number just below the allowed range"487},488{ "exec": "./bitcoin-tx",489"args": ["-create", "outscript=0:-4294967295"],490"output_cmp": "txcreatescript6.hex",491"description": "Try to parse an output script with a decimal number at the lower limit of the allowed range"492},493{ "exec": "./bitcoin-tx",494"args":495["-create", "nversion=1",496"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",497"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",498"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",499"sign=ALL",500"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.