Bitcoin multisignature addresses

0

Suppose we have a multisignature address "abc" with 100 coins in bitcoin regtest network, I want to that 100 coins in 10 slots that is i want spend 10 coins at a particular interval.

I tried the following: At t1:

send 10 coins from "abc" to some address and a change returning 90 coins back to multisig "abc"

At t2:

send 10 coins from "abc" to some address and a change returning 80 coins back to multisig "abc"

and so on.

The step followed at time t1 worked perfectly but I am getting the below mentioned error while trying to do the step mentioned at time t2. That is , i am not able to spend again from the same multisig account.

error code: -25
error message:
Missing inputs

How can I spend multiple times from the same multisig address?

prajna

Posted 2019-09-06T15:06:47.617

Reputation: 31

are you trying to spend the same inputs twice? How are you creating the transactions?JBaczuk 2019-09-06T15:40:40.537

I am creating a new raw transaction by using the same tx id and vout that funded the multisig address(like i did it first time).prajna 2019-09-06T15:53:26.937

2you can only use a specific txid and vout once. If you try to use it again, that input has already been used and it will result in a missing input error. For the 2nd tx try using the vout from the 90 coins that were returned.JBaczuk 2019-09-06T15:55:59.177

ok thank you...prajna 2019-09-10T06:10:15.723

I tried doing the same thing you mentioned but still I am getting the same error. @JBaczukprajna 2019-09-10T10:57:14.270

Sorry without the transaction details its hard to help any furtherJBaczuk 2019-09-10T11:56:26.220

I was using the wrong tx id (tx id without confirmation). Now its working. Thank You. @JBaczukprajna 2019-09-10T13:06:35.450

No answers