<p>Use the <code>listtransactions</code> RPC call, and look for a field named <code>comment</code>:</p>

<pre><code>$ bitcoin-cli listtransactions
[
...
    {
        "account" : "",
        "address" : "msj42CCGruhRsFrGATiUuh25dtxYtnpbTx",
        "category" : "send",
        "amount" : -0.00001000,
        "vout" : 0,
        "fee" : -0.00000225,
        "confirmations" : 0,
        "txid" : "0ecdc2da9266635349ad04b7374eb1032919c34e7949e60cec198b47e31d2f26",
        "walletconflicts" : [
        ],
        "time" : 1427561024,
        "timereceived" : 1427561024,
        "comment" : "COMMENT" &lt;--- Here
    },
...
]
</code></pre>

<p>Note that this comment only exists in your wallet, and is not sent across the network. The other party to the transaction will not see it.</p>

CC BY-SA 3.0
2015-03-29T03:12:41.473Z
Ah, you beat me to it! Here's Python code to check: https://gist.github.com/anonymous/fa9f193774ca76812121
Wizard Of Ozzie
CC BY-SA 3.0
2015-03-28T16:53:55.103Z
2015-03-29T01:00:13.157Z
2015-03-29T01:00:13.157Z
Nick ODell
<p>How can I retrieve the <code>comment</code> field from a payment transaction that I made from my QT wallet?</p>

<p>I can see the <code>comment</code> when I click "Show transaction details" in my QT but I cannot find a way to do this from the RPC console.</p>

<p>Any ideas?</p>

CC BY-SA 3.0
2015-03-28T15:50:36.383Z
I believe it's either listtransactions or listunspent. I am certain send and move accept a message parameter.
Wizard Of Ozzie
<json-rpc><transactions>
How to read a tx's comment?
Doug Peters
# How to read a tx's comment?

(Asked by: username_0 on 2015-03-28)

How can I retrieve the `comment` field from a payment transaction that I made from my QT wallet?

I can see the `comment` when I click "Show transaction details" in my QT but I cannot find a way to do this from the RPC console.

Any ideas?

**Tags:** json-rpc, transactions

> **Comments:**
> **username_1**: I believe it's either listtransactions or listunspent. I am certain send and move accept a message parameter.  

---

## 1 answers

### Answer by username_2 on 2015-03-28. Score: 3 | Accepted answer

Use the `listtransactions` RPC call, and look for a field named `comment`:

```
$ bitcoin-cli listtransactions
[
...
    {
        "account" : "",
        "address" : "msj42CCGruhRsFrGATiUuh25dtxYtnpbTx",
        "category" : "send",
        "amount" : -0.00001000,
        "vout" : 0,
        "fee" : -0.00000225,
        "confirmations" : 0,
        "txid" : "0ecdc2da9266635349ad04b7374eb1032919c34e7949e60cec198b47e31d2f26",
        "walletconflicts" : [
        ],
        "time" : 1427561024,
        "timereceived" : 1427561024,
        "comment" : "COMMENT" <--- Here
    },
...
]

```

Note that this comment only exists in your wallet, and is not sent across the network. The other party to the transaction will not see it.

> **Comments:**
> **username_1**: Ah, you beat me to it! Here's Python code to check: https://gist.github.com/anonymous/fa9f193774ca76812121  

---

