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?

  • are you trying to spend the same inputs twice? How are you creating the transactions? – JBaczuk Sep 6 at 15:40
  • 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 Sep 6 at 15:53
  • 2
    you 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 Sep 6 at 15:55
  • ok thank you... – prajna Sep 10 at 6:10
  • I tried doing the same thing you mentioned but still I am getting the same error. @JBaczuk – prajna Sep 10 at 10:57

Your Answer

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

Browse other questions tagged or ask your own question.