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

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

CC BY-SA 3.0
2015-07-24T04:03:33.353Z
Using createrawtransaction without using signrawtransaction seems like it would work.
Nick ODell
CC BY-SA 3.0
2015-07-24T05:27:07.270Z
@NickODell Transactions don't have to be signed?
Geremia
CC BY-SA 3.0
2015-07-24T14:38:50.883Z
Not if you don't care about them being valid. createrawtransaction will give you empty signature fields.
Nick ODell
<testnet><transaction-verification><testing><regtest><validation>
How to send an invalid transaction for testing purposes?
Geremia
# How to send an invalid transaction for testing purposes?

(Asked by: username_0 on 2015-07-24)

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.

**Tags:** testnet, transaction-verification, testing, regtest, validation

> **Comments:**
> **username_1**: Using createrawtransaction without using signrawtransaction seems like it would work.  
> **username_0**: @username_1 Transactions don't have to be signed?  
> **username_1**: Not if you don't care about them being valid. createrawtransaction will give you empty signature fields.  

---

## 0 answers

