<p>The error says 'type mismatch' because you're specifying 'comment' as the value for minconf.  minconf is used to check that the account you're sending from has sufficient funds with the specified number of confirmations.  So minconf needs to be a number.</p>

CC BY-SA 3.0
2012-07-02T21:16:35.137Z
2012-07-02T21:16:35.137Z
Chris Moore
<p>It appears that you are missing the field "minconf", probably setting that to any value would allow you to call the function properly.</p>

CC BY-SA 3.0
2012-07-02T18:30:40.260Z
Thanks. The syntax is a little confusing. What worked for me was:

    `bitcoind sendfrom 'testAccount69' 'sendToBitCoinAddress' '0.69' '1' 'comment 'comment-to'`
mozboz
CC BY-SA 3.0
2012-07-02T13:10:19.417Z
2012-07-02T13:10:19.417Z
ThePiachu
<p>The way to specify comment and comment-to parameters when calling bitcoind sendfrom at the comment line is not clear.</p>

<p>When using sendtoaddress, this format works:</p>

<pre><code>bitcoind sendtoaddress 'sendToBitCoinAddress' '0.42' 'comment' 'comment-to'
</code></pre>

<p>The man page specifies sendfrom has this format:</p>

<pre><code>sendfrom &lt;fromaccount&gt; &lt;tobitcoinaddress&gt; &lt;amount&gt; [minconf=1] [comment] [comment-to]
</code></pre>

<p>However a similar usage to sendtoaddress results in an error. I've tried various permutations like:</p>

<pre><code>bitcoind sendfrom 'testAccount69' 'sendToBitCoinAddress' '0.69' 'comment 'comment-to'
</code></pre>

<p>Thanks for any help</p>

<bitcoind>
Format of comment parameters on bitcoind sendfrom command unclear. Attempts result in 'error: type mismatch'
mozboz
# Format of comment parameters on bitcoind sendfrom command unclear. Attempts result in 'error: type mismatch'

(Asked by: username_0 on 2012-07-02)

The way to specify comment and comment-to parameters when calling bitcoind sendfrom at the comment line is not clear.
When using sendtoaddress, this format works:
bitcoind sendtoaddress 'sendToBitCoinAddress' '0.42' 'comment' 'comment-to'

The man page specifies sendfrom has this format:
sendfrom    [minconf=1] [comment] [comment-to]

However a similar usage to sendtoaddress results in an error. I've tried various permutations like:
bitcoind sendfrom 'testAccount69' 'sendToBitCoinAddress' '0.69' 'comment 'comment-to'

Thanks for any help

**Tags:** bitcoind


---

## 2 answers

### Answer by username_2 on 2012-07-02. Score: 4 | Accepted answer

It appears that you are missing the field "minconf", probably setting that to any value would allow you to call the function properly.

> **Comments:**
> **username_0**: Thanks. The syntax is a little confusing. What worked for me was:      `bitcoind sendfrom 'testAccount69' 'sendToBitCoinAddress' '0.69' '1' 'comment 'comment-to'`  

---

### Answer by username_1 on 2012-07-02. Score: 2

The error says 'type mismatch' because you're specifying 'comment' as the value for minconf. minconf is used to check that the account you're sending from has sufficient funds with the specified number of confirmations. So minconf needs to be a number.


---

