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 <fromaccount> <tobitcoinaddress> <amount> [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


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

  • Thanks. The syntax is a little confusing. What worked for me was: bitcoind sendfrom 'testAccount69' 'sendToBitCoinAddress' '0.69' '1' 'comment 'comment-to' – mozboz Jul 2 '12 at 18:30

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.