<p>The correct format that works for this is <code>bitcoin-cli testmempoolaccept &quot;[\&quot;0100000001abcd...\&quot;]&quot;</code></p>

CC BY-SA 4.0
2024-05-29T12:21:33.153Z
The version in the question would work on Linux, it is a difference between how Windows and Linux handle quoting in commands.
RedGrittyBrick
CC BY-SA 4.0
2024-05-30T21:19:02.280Z
Okay, but the question is about Windows, not Linux or Mac OS
Captain Fantastic
CC BY-SA 4.0
2024-05-31T10:03:54.770Z
1. That wasn't made clear in the original form of the question. 2. I thought others reading this might not be aware of this OS difference and might find it helpful to know.
RedGrittyBrick
CC BY-SA 4.0
2024-05-29T11:49:26.503Z
2024-05-29T11:49:26.503Z
Captain Fantastic
<p>The documentation for bitcoin-cli testmempoolaccept suggests</p>
<pre><code>bitcoin-cli testmempoolaccept '[&quot;0100000001abcd...&quot;]'
</code></pre>
<p>but that throws <code>Error parsing JSON</code>. I have tried numerous variations of this, but none of them work. How can I use <code>testmempoolaccept</code> on Windows?</p>

<json-rpc><bitcoin-cli><windows><testmempoolaccept>
"Error parsing JSON": how to use `testmempoolaccept` on Windows?
Captain Fantastic
# "Error parsing JSON": how to use `testmempoolaccept` on Windows?

(Asked by: username_0 on 2024-05-29)

The documentation for bitcoin-cli testmempoolaccept suggests

```
bitcoin-cli testmempoolaccept '["0100000001abcd..."]'

```

but that throws `Error parsing JSON`. I have tried numerous variations of this, but none of them work. How can I use `testmempoolaccept` on Windows?

**Tags:** json-rpc, bitcoin-cli, windows, testmempoolaccept


---

## 1 answers

### Answer by username_0 on 2024-05-29. Score: 1

The correct format that works for this is `bitcoin-cli testmempoolaccept "[\"0100000001abcd...\"]"`

> **Comments:**
> **username_1**: The version in the question would work on Linux, it is a difference between how Windows and Linux handle quoting in commands.  
> **username_0**: Okay, but the question is about Windows, not Linux or Mac OS  
> **username_1**: 1. That wasn't made clear in the original form of the question. 2. I thought others reading this might not be aware of this OS difference and might find it helpful to know.  

---

