How could I send an invalid transaction—for testing purposes, such as with testnet or regtest?

For example, I would like to to try to double-spend, spend non existent coins, etc.

  • 1
    Using createrawtransaction without using signrawtransaction seems like it would work. – Nick ODell Jul 24 '15 at 4:03
  • @NickODell Transactions don't have to be signed? – Geremia Jul 24 '15 at 5:27
  • Not if you don't care about them being valid. createrawtransaction will give you empty signature fields. – Nick ODell Jul 24 '15 at 14:38

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.