You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to send BTC from p2sh (3 series segwit address) To p2pkh (1 series address) or p2sh (3 series segwit address) address.
Error occur:
Validation Error: BitcoindException(super=com.neemre.btcdcli4j.core.BitcoindException: Error #-26: 16: mandatory-script-verify-flag-failed (Operation not valid with the current stack size), code=-26)
Also, Can you please help me out to complete this transaction?
Transaction Raw:
{
"lock_time":0,
"size":138,
"inputs":[
{
"prev_out":{
"index":0,
"hash":"ea3fbe2a0e20243a1ea73c676a779ab960076195b8f3e2bc50c0fd4c85a40594"
},
"script":"a91420086569b8e4cf4e3e41dcb4534fe6cb428ed78187"
}
],
"version":1,
"vin_sz":1,
"hash":"0375231843d56bdfe4e611e9836fa879ac842c45b9f8820a05fd182236725464",
"vout_sz":2,
"out":[
{
"script_string":"OP_HASH160 d0270242e5f97c51d767c79c45eb3ca9d767b780 OP_EQUAL",
"address":"2NCDqGZn3u7drf3rEoZzAiWhNptQjkGvU4d",
"value":50000,
"script":"a914d0270242e5f97c51d767c79c45eb3ca9d767b78087"
},
{
"script_string":"OP_HASH160 7c4d02c1c4caadff2839f43473dc7675b71da9ca OP_EQUAL",
"address":"2N4aU2saw5bKXSfSQW47JfqAbuixLT9TdK1",
"value":218028,
"script":"a9147c4d02c1c4caadff2839f43473dc7675b71da9ca87"
}
]
}
Normally 1 series inputs generate as per As per above and working proper but how can i generate below input for 3 series address & 2 series address. because in transaction inputs there is no witness key is available.
Any one create transaction witness class please share with us. we need to require for 3 series address transaction.
The text was updated successfully, but these errors were encountered:
tbsiosdev
changed the title
Enable Create transaction Raw for 3 series Segwit address?
Enable Create transaction Raw for 3 series Segwit address? Also Transaction witness class missing?
Jun 14, 2018
I am trying to send BTC from p2sh (3 series segwit address) To p2pkh (1 series address) or p2sh (3 series segwit address) address.
Error occur:
Validation Error: BitcoindException(super=com.neemre.btcdcli4j.core.BitcoindException: Error #-26: 16: mandatory-script-verify-flag-failed (Operation not valid with the current stack size), code=-26)
Also, Can you please help me out to complete this transaction?
Transaction Raw:
{
"lock_time":0,
"size":138,
"inputs":[
{
"prev_out":{
"index":0,
"hash":"ea3fbe2a0e20243a1ea73c676a779ab960076195b8f3e2bc50c0fd4c85a40594"
},
"script":"a91420086569b8e4cf4e3e41dcb4534fe6cb428ed78187"
}
],
"version":1,
"vin_sz":1,
"hash":"0375231843d56bdfe4e611e9836fa879ac842c45b9f8820a05fd182236725464",
"vout_sz":2,
"out":[
{
"script_string":"OP_HASH160 d0270242e5f97c51d767c79c45eb3ca9d767b780 OP_EQUAL",
"address":"2NCDqGZn3u7drf3rEoZzAiWhNptQjkGvU4d",
"value":50000,
"script":"a914d0270242e5f97c51d767c79c45eb3ca9d767b78087"
},
{
"script_string":"OP_HASH160 7c4d02c1c4caadff2839f43473dc7675b71da9ca OP_EQUAL",
"address":"2N4aU2saw5bKXSfSQW47JfqAbuixLT9TdK1",
"value":218028,
"script":"a9147c4d02c1c4caadff2839f43473dc7675b71da9ca87"
}
]
}
For Example,
Normally,
inputs: [
{
prev_hash: "63c8130b847351be8321b7d92078a3a8426ba21cd85cf48387046498d0c9fc88",
output_index: 0,
script: "47304402200b9f5c20b70230294daee4cea13a74d9bcc30438ee3d0a9b01be9fe1960b72d102206dca823ba76dfd144d9251be6acf2b82e1073ad34efbc5f822209832a333a51801210273ec04aec500bfe53bd779b6b3856b80b4b845ae671ca55c5ecad96b727bb8e4",
output_value: 101900,
sequence: 4294967295,
addresses: [
"14zzPmMHUS5yo3An3mCewmRd4LnodTRrjY"
],
script_type: "pay-to-pubkey-hash",
age: 526166,
}
],
Normally 1 series inputs generate as per As per above and working proper but how can i generate below input for 3 series address & 2 series address. because in transaction inputs there is no witness key is available.
inputs: [
{
prev_hash: "b4a212e8e915efc45431e1459978c4e045f6eea0dc6ee4976cdcb964670185ab",
output_index: 1,
script: "16001449cf0965bf38b026e654aa971f385cb7cac2a19c",
output_value: 839460,
sequence: 4294967295,
addresses: [
"323Q24e4KY8iiPbEwNUVhZTC1W4AZDTJVd"
],
script_type: "pay-to-script-hash",
age: 522376,
witness: [
"3045022100fe86653a4f97350e6214c03a13903d7f5ce3e4db459d96d4f94a566b92719ba602201d50ba0bb94015841cb43863e68f04f52f76a76cccf4091edfc1cf0aa8dde84901",
"0306521a3b79a8ae5e8735792bc856fe3af1e051bead4d4891fd42cc607854de99",
],
}
],
Any one create transaction witness class please share with us. we need to require for 3 series address transaction.
The text was updated successfully, but these errors were encountered: