Author

Topic: bitcoind sendrawtransaction Multisig (Read 1382 times)

hero member
Activity: 642
Merit: 500
Evolution is the only way to survive
October 22, 2014, 08:50:59 AM
#9
if you get -25 error , the problem is always on vout parameter  by my experience . So double check your vout parameter on createrawtransaction part .
And don't forget to add privkey when using signrawtransaction  Roll Eyes
member
Activity: 73
Merit: 10
October 22, 2014, 08:47:25 AM
#8
It's easier to use electrum client to send raw transactions.

Thanks
member
Activity: 73
Merit: 10
October 22, 2014, 08:38:57 AM
#7
I found out the blockchain hasn't been completely downloaded. Maybe this is the issue?
member
Activity: 73
Merit: 10
October 22, 2014, 08:32:35 AM
#6
judging from your scriptsig , you are using 2-3 multisig  , so you should sign your tx twice

you can refer this https://gist.github.com/gavinandresen/3966071



That transaction is already signed by 2 of the 3 private keys. It is a valid transaction waiting to be sent to the network.
legendary
Activity: 1260
Merit: 1019
October 22, 2014, 08:31:47 AM
#5
judging from your scriptsig , you are using 2-3 multisig  , so you should sign your tx twice
you can refer this https://gist.github.com/gavinandresen/3966071

I see two signatures:
3045022100d53bbf3352ed5f.... and 304402203eb97297b1499c13....
legendary
Activity: 1736
Merit: 1001
October 22, 2014, 08:27:20 AM
#4
judging from your scriptsig , you are using 2-3 multisig  , so you should sign your tx twice

you can refer this https://gist.github.com/gavinandresen/3966071



That should do the trick thanks.
hero member
Activity: 642
Merit: 500
Evolution is the only way to survive
October 22, 2014, 08:22:08 AM
#3
judging from your scriptsig , you are using 2-3 multisig  , so you should sign your tx twice

you can refer this https://gist.github.com/gavinandresen/3966071

legendary
Activity: 1260
Merit: 1019
October 22, 2014, 07:36:05 AM
#2
from rpcprotocol.h
Code:
    RPC_TRANSACTION_ERROR           = -25, // General error during transaction submission

from rpcrawtransaction.cpp
Code:
        if (!AcceptToMemoryPool(mempool, state, tx, false, NULL, !fOverrideFees)) {
            if(state.IsInvalid())
                throw JSONRPCError(RPC_TRANSACTION_REJECTED, strprintf("%i: %s", state.GetRejectCode(), state.GetRejectReason()));
            else
                throw JSONRPCError(RPC_TRANSACTION_ERROR, state.GetRejectReason());
        }

Try to use debugger
member
Activity: 73
Merit: 10
October 22, 2014, 07:22:57 AM
#1
Hello,

I'm trying to send a raw Multisig transaction but getting error -25. The transaction is correct since sending it through Blockchain works.

Any ideas?

Thanks!

./bitcoind sendrawtransaction 0100000001cf46a2ba38fa44b73c48365d1beca9f81ba2fd32b1514c12c2fa0ea03da2ee1300000 000fd5d0100483045022100d53bbf3352ed5f7b194dc4438fb313e66d5c28d4b7b8bc289dab7891 c8fa90c1022061443e668753d68c53da1ffa2205fb27cd367a0eafd999eafaed131592e76958014 7304402203eb97297b1499c139a2ba136e7b1650b8218b1dac2d6719848d3415c3a00292702204d aadef614757f07debc21771f8a86bbfa49fb9f6c512eac4c811cb9e14bd256014cc9524104b4dc9 7ce0faa5d8d01cd182ef5e4dbb4ac09f97e705bad739a8b874d841251739c935818c90bfc722ffe 3d5b8125502d3533c02fc8f80603074f4f5d21a182694104b2e39ceed5bd357358364539caca3cf 911dd9d4ca9f1115cf597781019ee1787079a5031ce9ff34b47898a41a6abce03ef577b7792d884 1738240b6b23eed13841040f7baeafa9d70e62c12039f0f2779e8df8d9a948f72dbf9621b361b09 98d0c6097675ee9d309f6aaab03eef5a1234b3686437ba3cb90d335924a24170e3605a853aeffff ffff0220ac9700000000001976a9142e8aca55c568612c978a5b8e6c14098eec28109888aca0860 100000000001976a9142a7831e15bc341f14b8cff498b2862befc8d12e788ac00000000
error: {"code":-25,"message":""}

./bitcoind decoderawtransaction 0100000001cf46a2ba38fa44b73c48365d1beca9f81ba2fd32b1514c12c2fa0ea03da2ee1300000 000fd5d0100483045022100d53bbf3352ed5f7b194dc4438fb313e66d5c28d4b7b8bc289dab7891 c8fa90c1022061443e668753d68c53da1ffa2205fb27cd367a0eafd999eafaed131592e76958014 7304402203eb97297b1499c139a2ba136e7b1650b8218b1dac2d6719848d3415c3a00292702204d aadef614757f07debc21771f8a86bbfa49fb9f6c512eac4c811cb9e14bd256014cc9524104b4dc9 7ce0faa5d8d01cd182ef5e4dbb4ac09f97e705bad739a8b874d841251739c935818c90bfc722ffe 3d5b8125502d3533c02fc8f80603074f4f5d21a182694104b2e39ceed5bd357358364539caca3cf 911dd9d4ca9f1115cf597781019ee1787079a5031ce9ff34b47898a41a6abce03ef577b7792d884 1738240b6b23eed13841040f7baeafa9d70e62c12039f0f2779e8df8d9a948f72dbf9621b361b09 98d0c6097675ee9d309f6aaab03eef5a1234b3686437ba3cb90d335924a24170e3605a853aeffff ffff0220ac9700000000001976a9142e8aca55c568612c978a5b8e6c14098eec28109888aca0860 100000000001976a9142a7831e15bc341f14b8cff498b2862befc8d12e788ac00000000
{
    "txid" : "dfcf72f75dd5327ce7a7b14c2650dec15d60f3818801400b3000b8cb87f9c580",
    "version" : 1,
    "locktime" : 0,
    "vin" : [
        {
            "txid" : "13eea23da00efac2124c51b132fda21bf8a9ec1b5d36483cb744fa38baa246cf",
            "vout" : 0,
            "scriptSig" : {
                "asm" : "0 3045022100d53bbf3352ed5f7b194dc4438fb313e66d5c28d4b7b8bc289dab7891c8fa90c102206 1443e668753d68c53da1ffa2205fb27cd367a0eafd999eafaed131592e7695801 304402203eb97297b1499c139a2ba136e7b1650b8218b1dac2d6719848d3415c3a00292702204da adef614757f07debc21771f8a86bbfa49fb9f6c512eac4c811cb9e14bd25601 524104b4dc97ce0faa5d8d01cd182ef5e4dbb4ac09f97e705bad739a8b874d841251739c935818c 90bfc722ffe3d5b8125502d3533c02fc8f80603074f4f5d21a182694104b2e39ceed5bd35735836 4539caca3cf911dd9d4ca9f1115cf597781019ee1787079a5031ce9ff34b47898a41a6abce03ef5 77b7792d8841738240b6b23eed13841040f7baeafa9d70e62c12039f0f2779e8df8d9a948f72dbf 9621b361b0998d0c6097675ee9d309f6aaab03eef5a1234b3686437ba3cb90d335924a24170e360 5a853ae",
                "hex" : "00483045022100d53bbf3352ed5f7b194dc4438fb313e66d5c28d4b7b8bc289dab7891c8fa90c10 22061443e668753d68c53da1ffa2205fb27cd367a0eafd999eafaed131592e76958014730440220 3eb97297b1499c139a2ba136e7b1650b8218b1dac2d6719848d3415c3a00292702204daadef6147 57f07debc21771f8a86bbfa49fb9f6c512eac4c811cb9e14bd256014cc9524104b4dc97ce0faa5d 8d01cd182ef5e4dbb4ac09f97e705bad739a8b874d841251739c935818c90bfc722ffe3d5b81255 02d3533c02fc8f80603074f4f5d21a182694104b2e39ceed5bd357358364539caca3cf911dd9d4c a9f1115cf597781019ee1787079a5031ce9ff34b47898a41a6abce03ef577b7792d8841738240b6 b23eed13841040f7baeafa9d70e62c12039f0f2779e8df8d9a948f72dbf9621b361b0998d0c6097 675ee9d309f6aaab03eef5a1234b3686437ba3cb90d335924a24170e3605a853ae"
            },
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 0.09940000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 2e8aca55c568612c978a5b8e6c14098eec281098 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a9142e8aca55c568612c978a5b8e6c14098eec28109888ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "15F6M9bj3LXQ9FBhY2kRwEoSaH2BJjgSch"
                ]
            }
        },
        {
            "value" : 0.00100000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 2a7831e15bc341f14b8cff498b2862befc8d12e7 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a9142a7831e15bc341f14b8cff498b2862befc8d12e788ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "14sZNLnW81h6XDGMyvMryK9ovjAX9Y8pvL"
                ]
            }
        }
    ]
}

./bitcoind signrawtransaction 0100000001cf46a2ba38fa44b73c48365d1beca9f81ba2fd32b1514c12c2fa0ea03da2ee1300000 000fd5d0100483045022100d53bbf3352ed5f7b194dc4438fb313e66d5c28d4b7b8bc289dab7891 c8fa90c1022061443e668753d68c53da1ffa2205fb27cd367a0eafd999eafaed131592e76958014 7304402203eb97297b1499c139a2ba136e7b1650b8218b1dac2d6719848d3415c3a00292702204d aadef614757f07debc21771f8a86bbfa49fb9f6c512eac4c811cb9e14bd256014cc9524104b4dc9 7ce0faa5d8d01cd182ef5e4dbb4ac09f97e705bad739a8b874d841251739c935818c90bfc722ffe 3d5b8125502d3533c02fc8f80603074f4f5d21a182694104b2e39ceed5bd357358364539caca3cf 911dd9d4ca9f1115cf597781019ee1787079a5031ce9ff34b47898a41a6abce03ef577b7792d884 1738240b6b23eed13841040f7baeafa9d70e62c12039f0f2779e8df8d9a948f72dbf9621b361b09 98d0c6097675ee9d309f6aaab03eef5a1234b3686437ba3cb90d335924a24170e3605a853aeffff ffff0220ac9700000000001976a9142e8aca55c568612c978a5b8e6c14098eec28109888aca0860 100000000001976a9142a7831e15bc341f14b8cff498b2862befc8d12e788ac00000000
{
    "hex" : "0100000001cf46a2ba38fa44b73c48365d1beca9f81ba2fd32b1514c12c2fa0ea03da2ee1300000 000fd5d0100483045022100d53bbf3352ed5f7b194dc4438fb313e66d5c28d4b7b8bc289dab7891 c8fa90c1022061443e668753d68c53da1ffa2205fb27cd367a0eafd999eafaed131592e76958014 7304402203eb97297b1499c139a2ba136e7b1650b8218b1dac2d6719848d3415c3a00292702204d aadef614757f07debc21771f8a86bbfa49fb9f6c512eac4c811cb9e14bd256014cc9524104b4dc9 7ce0faa5d8d01cd182ef5e4dbb4ac09f97e705bad739a8b874d841251739c935818c90bfc722ffe 3d5b8125502d3533c02fc8f80603074f4f5d21a182694104b2e39ceed5bd357358364539caca3cf 911dd9d4ca9f1115cf597781019ee1787079a5031ce9ff34b47898a41a6abce03ef577b7792d884 1738240b6b23eed13841040f7baeafa9d70e62c12039f0f2779e8df8d9a948f72dbf9621b361b09 98d0c6097675ee9d309f6aaab03eef5a1234b3686437ba3cb90d335924a24170e3605a853aeffff ffff0220ac9700000000001976a9142e8aca55c568612c978a5b8e6c14098eec28109888aca0860 100000000001976a9142a7831e15bc341f14b8cff498b2862befc8d12e788ac00000000",
    "complete" : false
}
Jump to: