Bitcoin
Code: -26, Error: non-mandatory-script-verify-flag (pushing data larger than required)” when trying to spend on P2WSH
I sent it to P2WSH, but I got this error and can’t spend from this address. Code: -26, Error: non-mandatory-script-verify-flag (pushing larger data than required)”
This is a hashed script to create a P2WSH address. Raw hexadecimal:
Script with comments; 93 – op_add 01 – OP_PUSHBYTES_1 08 87 – op_equal 00 – OP_0 63 – OP_IF ? 03 – OP_PUSHBYTES_3 6f7264 – “ord” 01 – OP_PUSHBYTES_1 01 09 – OP_PUSHBYTES_9 ? 696d6167652f706e67 – “image/png” 00 – OP_0 4d0802 – OP_PUSHDATA2, 520 bytes 30 – OP_PUSHBYTES48 1bac856563cb78838b82215de7a54233b0f755be164b7f36c46ae50752 e78 5b8f36ef2c30000000049454e44ae426082 68 – OP_ENDIF ?
As you can see, all we have to do is push two 4s onto the stack and we’ll be ready to go.
Thanks a lot for your help.