Physique:
I’m making an attempt to ship a signed transaction on my Bitcoin regtest node, however I hold encountering the next error:
Standing Err("RPC error: Object {"code": Quantity(-26), "message": String("non-mandatory-script-verify-flag (Witness program hash mismatch)")}")
Right here is the signed transaction in hex format:
0100000000010210413314e6a7523e9226231cc98291be14b344c527247d30b114bfc14332966f0000000000010000004cff5a6833bdc88917deb2236b2b5aabac7ee55678d281a5d514d80c58b9205400000000000100000004a78601000000000022512004df961f0dc33681f69295309efebc1e3c0895faf1e5a3944d6229006643726c102700000000000022512091a7c6f87e147f6328584f635d61d27ba94c2d6f179e918612bfbeac15fb4ff1af5b0100000000002451225120af8f84b2c95e5f7383516fe74e26726508132ba1854cda0d53170f6499b4303000000000000000000b6a5d08008b0101a08d06010140e0c130ee911ab5315369940c6985fc8dfc8a007d5822982ddc86dbdd35ecfc397199a2b51b818ec4c060d8f57e3df8801799d204865dd81dbede8712172e1b500247304402201b0f4ab4adab3e103bc44431646079b6a9d29247f2e916743df0742ff923821d02205c4595dae81ec56a9212fb0759c1969fbb7682bccb2ec2836638b9dddbe564f5012102de40f233a6852b423cced32047d56f563c1e140e88b31172c03586ee26a4c8e90c000000
My RPC URL is:
http://localhost:18443
Under is the decoded transaction:
{
"txid": "fefc51abf2ee88c7e6aab1aaf3c7617617d151721d17b5eca5f6ec927b932eeb",
"hash": "f0320096241192a753c40a348437cc9fadd9ca3e711b474f20a5cea94ff5de82",
"model": 1,
"measurement": 418,
"vsize": 287,
"weight": 1147,
"locktime": 12,
"vin": [
{
"txid": "6f963243c1bf14b1307d2427c544b314be9182c91c2326923e52a7e614334110",
"vout": 0,
"scriptSig": {
"asm": "",
"hex": ""
},
"txinwitness": [
"e0c130ee911ab5315369940c6985fc8dfc8a007d5822982ddc86dbdd35ecfc397199a2b51b818ec4c060d8f57e3df8801799d204865dd81dbede8712172e1b50"
],
"sequence": 1
},
{
"txid": "5420b9580cd814d5a581d27856e57eacab5a2b6b23b2de1789c8bd33685aff4c",
"vout": 0,
"scriptSig": {
"asm": "",
"hex": ""
},
"txinwitness": [
"304402201b0f4ab4adab3e103bc44431646079b6a9d29247f2e916743df0742ff923821d02205c4595dae81ec56a9212fb0759c1969fbb7682bccb2ec2836638b9dddbe564f501",
"02de40f233a6852b423cced32047d56f563c1e140e88b31172c03586ee26a4c8e9"
],
"sequence": 1
}
],
"vout": [
{
"value": 0.00100007,
"n": 0,
"scriptPubKey": {
"asm": "1 04df961f0dc33681f69295309efebc1e3c0895faf1e5a3944d6229006643726c",
"desc": "rawtr(04df961f0dc33681f69295309efebc1e3c0895faf1e5a3944d6229006643726c)#t53sxumw",
"hex": "512004df961f0dc33681f69295309efebc1e3c0895faf1e5a3944d6229006643726c",
"address": "bc1pqn0ev8cdcvmgra5jj5cfal4urc7q390678j689zdvg5sqejrwfkqswr6q8",
"type": "witness_v1_taproot"
}
},
{
"value": 0.0001,
"n": 1,
"scriptPubKey": {
"asm": "1 91a7c6f87e147f6328584f635d61d27ba94c2d6f179e918612bfbeac15fb4ff1",
"desc": "rawtr(91a7c6f87e147f6328584f635d61d27ba94c2d6f179e918612bfbeac15fb4ff1)#pmcwftnq",
"hex": "512091a7c6f87e147f6328584f635d61d27ba94c2d6f179e918612bfbeac15fb4ff1",
"address": "bc1pjxnud7r7z3lkx2zcfa346cwj0w55ctt0z70frpsjh7l2c90mflcsddceuk",
"type": "witness_v1_taproot"
}
},
{
"value": 0.00089007,
"n": 2,
"scriptPubKey": {
"asm": "1 5120af8f84b2c95e5f7383516fe74e26726508132ba1854cda0d53170f6499b43030",
"desc": "addr(bc1p2ys2lruykty4uhmnsdgkle6wyeex2zqn9wsc2nx6p4f3wrmynx6rqvqyw3kvr)#dsrp93y6",
"hex": "51225120af8f84b2c95e5f7383516fe74e26726508132ba1854cda0d53170f6499b43030",
"address": "bc1p2ys2lruykty4uhmnsdgkle6wyeex2zqn9wsc2nx6p4f3wrmynx6rqvqyw3kvr",
"type": "witness_unknown"
}
},
{
"value": 0,
"n": 3,
"scriptPubKey": {
"asm": "OP_RETURN 13 008b0101a08d0601",
"desc": "raw(6a5d08008b0101a08d0601)#nfnwjyy2",
"hex": "6a5d08008b0101a08d0601",
"type": "nulldata"
}
}
]
}
I’ve verified that the addresses and quantities are right. I am undecided why I am getting the “Witness program hash mismatch” error. May anybody assist me determine what could be incorrect with my transaction?
Thanks!