0

I have transaction

020000000001019e1ab6b4683d58a37f969991304798bbbf7687599f057de0ae61f92945fd1216000000000151ffffffff02BB51D9000000000017a914182fd008c33ac992bda3bac7e09297ebe8639aca87800bb2030000000017a914182fd008c33ac992bda3bac7e09297ebe8639aca87024730440220110ff8ea143c0e1b14da35103ee285be9c0729a79a1e70c543627da58c07947c02204afd8d5a29d50d3519735b33ada00a09fbf379e424b137f547d3f5cd9db24f62012102ada9884dbd1e8bd90968ba66256f017cd77d83595027f7929ae3537f98c92d4a00000000

which is

{
    "result": {
        "txid": "5e24dee37a75b2573538a33f99a924741dc4f55854830a08f69da107a6f2676c",
        "hash": "8446cf6994ab7f8716cd55fb0c1f9a6f065abedd9f2b6f663c0f0315d1d0718a",
        "version": 2,
        "size": 225,
        "vsize": 144,
        "locktime": 0,
        "vin": [
            {
                "txid": "1612fd4529f961aee07d059f598776bfbb9847309199967fa3583d68b4b61a9e",
                "vout": 0,
                "scriptSig": {
                    "asm": "1",
                    "hex": "51"
                },
                "txinwitness": [
                    "30440220110ff8ea143c0e1b14da35103ee285be9c0729a79a1e70c543627da58c07947c02204afd8d5a29d50d3519735b33ada00a09fbf379e424b137f547d3f5cd9db24f6201",
                    "02ada9884dbd1e8bd90968ba66256f017cd77d83595027f7929ae3537f98c92d4a"
                ],
                "sequence": 4294967295
            }
        ],
        "vout": [
            {
                "value": 0.14242235,
                "n": 0,
                "scriptPubKey": {
                    "asm": "OP_HASH160 182fd008c33ac992bda3bac7e09297ebe8639aca OP_EQUAL",
                    "hex": "a914182fd008c33ac992bda3bac7e09297ebe8639aca87",
                    "reqSigs": 1,
                    "type": "scripthash",
                    "addresses": [
                        "33tuREAHMXoNBS5vCYKtk4qCCofzTn37oy"
                    ]
                }
            },
            {
                "value": 0.62000000,
                "n": 1,
                "scriptPubKey": {
                    "asm": "OP_HASH160 182fd008c33ac992bda3bac7e09297ebe8639aca OP_EQUAL",
                    "hex": "a914182fd008c33ac992bda3bac7e09297ebe8639aca87",
                    "reqSigs": 1,
                    "type": "scripthash",
                    "addresses": [
                        "33tuREAHMXoNBS5vCYKtk4qCCofzTn37oy"
                    ]
                }
            }
        ]
    },
    "error": null,
    "id": null
}

Input script is very simple which returns 1. But when I'm trying to send this transaction I get error:

code=-26, message=16: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)

Actually, I want to use a different script, but I get the same error. What's wrong with this transaction?

  • What is the redeemscript? – Pieter Wuille Aug 25 '18 at 18:20
0

Input script is very simple which returns 1.

You can not spend from 2Muf8gJV81wa93smDeiy7X777BJcppBR5uP with this scriptSig. Do not pay attention on the error message. Your transaction IS invalid

https://testnet.smartbit.com.au/address/2Muf8gJV81wa93smDeiy7X777BJcppBR5uP

  • As I understood firstly I should create transaction with output script of hash160(51) as in this transaction. Then should be possible to create a transaction with input script 51 as done here. But anyway I can't create transaction with output of hash160(51). I get error: (Signature must be zero for failed CHECK(MULTI)SIG operation). – Andr1i Aug 26 '18 at 9:44
  • Why did you write that I can not send a transaction with this input from this address? Is it somehow related with that address? – Andr1i Aug 26 '18 at 9:45
  • the vin in your transaction can be found in testnet network. it was easy to find some details you've omitted – amaclin Aug 26 '18 at 11:16
  • What details are you talking about? – Andr1i Aug 26 '18 at 12:01
  • address and redeemscript. note: you can not spend from 2Muf8gJV81wa93smDeiy7X777BJcppBR5uP with a script of 2ND8PB9RrfCaAcjfjP1Y6nAgFd9zWHYX4DN – amaclin Aug 26 '18 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.