Skip to content
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

Error validating transaction: Error running script for input 0 referencing <vin-txid> at 0: Script was NOT verified successfully #554

Open
saurabhsingh121 opened this issue Jan 17, 2023 · 0 comments

Comments

@saurabhsingh121
Copy link

While broadcasting this multisig-segwit transaction on bitcoin testnet, I am getting this error

Error validating transaction: Error running script for input 0
referencing
38926ed5678fc65e6024758d18c80e04f3b09b8463ec04c7e3af2784210065ed at 0:
Script was NOT verified successfully.

Raw txn is:- 01000000000101ed6500218427afe3c704ec63849bb0f3040ec8188d7524605ec68f67d56e923800000000232200203bbb21aa11618a5543444510f29d77cf18ca995682e6daa7077d9ba0f4dd00c5feffffff02084c01000000000017a9142729dfa0b6731b5dce4ff24504d7e02e64dd78a487d8e51a000000000017a91497d59a68f6ad93f78e0fee8fe7e9f1863eecc2b9870400483045022100aea3edbd20ab6d733d76c5f09b1a46c8b8e5b25e5e68e297fda5cad448a9f07b02202b52a949033fe6f651f27e3d513e94dac3b452abf182a186e5284d9dcb106fef01483045022100b4ef8d552cc1f5caec08f1a27c48bcd8be05004d2a58ff05b8a69fd7c86a929e02204607f64a2811aa9315fb8dea898b8ebf7fdda1d54db9caa7c5e429d438c8ad8201475221037a5d3d3868af61c20a7e75487a43d1b25c50f9ab6b47df976559db621064e7802103b336b1e20cdb37b184ae339c1a8c53eec0fcda0731461382c9d8b33d093eb44c52ae00000000

Decoded Transaction is:-

{
    "txid": "41ed28bd84fa88967430c113258dc12a5ad5c6f04c74c4ce2b77c6f079844656",
    "hash": "ac19c706183c5853002d55c63a7c8b7520582c72d1dec301c742d59e8140aba1",
    "version": 1,
    "size": 372,
    "vsize": 206,
    "weight": 822,
    "locktime": 0,
    "vin": [
        {
            "txid": "38926ed5678fc65e6024758d18c80e04f3b09b8463ec04c7e3af2784210065ed",
            "vout": 0,
            "scriptSig": {
                "asm": "00203bbb21aa11618a5543444510f29d77cf18ca995682e6daa7077d9ba0f4dd00c5",
                "hex": "2200203bbb21aa11618a5543444510f29d77cf18ca995682e6daa7077d9ba0f4dd00c5"
            },
            "txinwitness": [
                "",
                "3045022100aea3edbd20ab6d733d76c5f09b1a46c8b8e5b25e5e68e297fda5cad448a9f07b02202b52a949033fe6f651f27e3d513e94dac3b452abf182a186e5284d9dcb106fef01",
                "3045022100b4ef8d552cc1f5caec08f1a27c48bcd8be05004d2a58ff05b8a69fd7c86a929e02204607f64a2811aa9315fb8dea898b8ebf7fdda1d54db9caa7c5e429d438c8ad8201",
                "5221037a5d3d3868af61c20a7e75487a43d1b25c50f9ab6b47df976559db621064e7802103b336b1e20cdb37b184ae339c1a8c53eec0fcda0731461382c9d8b33d093eb44c52ae"
            ],
            "sequence": 4294967294
        }
    ],
    "vout": [
        {
            "value": 0.00085,
            "n": 0,
            "scriptPubKey": {
                "asm": "OP_HASH160 2729dfa0b6731b5dce4ff24504d7e02e64dd78a4 OP_EQUAL",
                "hex": "a9142729dfa0b6731b5dce4ff24504d7e02e64dd78a487",
                "address": "35G6ST4UGEtLh1fsnPHTigbYZC3WhuugTe",
                "type": "scripthash"
            }
        },
        {
            "value": 0.01762776,
            "n": 1,
            "scriptPubKey": {
                "asm": "OP_HASH160 97d59a68f6ad93f78e0fee8fe7e9f1863eecc2b9 OP_EQUAL",
                "hex": "a91497d59a68f6ad93f78e0fee8fe7e9f1863eecc2b987",
                "address": "3FXqqvD15xgWBoM5oGvgYfa2W4F8EmJaML",
                "type": "scripthash"
            }
        }
    ]
}

I am using 2/2 quorum for signing transaction. I am using bitcoinj lib to prepare this transaction. Please point what I am doing wrong.

Screenshot 2023-01-17 at 2 46 38 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant