-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending raw transaction shows mandatory-script-verify-flag-failed error #15
Comments
Can I see an example raw transaction hex? |
Sure. This is my raw transaction hex: 010000000112cf2b0944539dfab523904cd7e24386b45164fd00e0914bfe9b6d440b6cd0e2000000006a47304402203519d04d2a7ef3c9fe0dd0823cfc9818d468e077832e3d5083b66e9e19b0684202204e5ae7ea1b68665d4873d3cfdafcd56738f7277916d57fad7a0e3e688489ff724121032a5ca9f5391712e636ed2ebc62fc5801eff1c666d9db35f3957b191eebddfc77ffffffff0280841e00000000001976a914806ee535a398e3001138f57f354055906e95fd5588acd4107a00000000001976a914cc095bcdf26b600992070cf4280e1d556125d2c488ac00000000 |
I figured out my fromAddress was wrong and was not the same as the one that my seed produced and that was the reason I faced that error. But now that I fixed it I run into another error: this is my raw transaction: 0100000001766d266bc5b02fbc28074fc0c356cf136ea765287b627e728491fe746d33c4a9000000006b483045022100da0fe5666274051a9667d458e87c60c2805860747fb94ccf42f9be4e95a4b69e02207feec061f42b2f9148277b298681b2eddfec81f3531080d79ddd6c63521f2ff44121032a5ca9f5391712e636ed2ebc62fc5801eff1c666d9db35f3957b191eebddfc77ffffffff0280841e00000000001976a914806ee535a398e3001138f57f354055906e95fd5588ac70237b00000000001976a9146f8227901f4b2ba31c53449a6b68737d5180a07388ac00000000 Is there anything wrong with my code in creating script? Any help would be greatly appreciated. |
I'm trying to create a raw transaction for bch testnet. But when sending it, I get this error: mandatory-script-verify-flag-failed (Script failed an OP_EQUALVERIFY operation) (code 16). I run out of ideas and I don't which part I'm doing wrong.
This is my code:
I'd appreciate your help @pokkst
The text was updated successfully, but these errors were encountered: