Author

Topic: sendtoaddress -- what are comment and comment-to params for? (Read 2560 times)

sr. member
Activity: 606
Merit: 273
"comment and comment-to are both just stored as text with the transaction. The intent is that comment be used to store what the transaction is for, and comment-to be used to store the name of the person or organization to which you're sending the transaction.

Neither are stored anywhere besides your wallet (they're not sent with transactions), and neither are encrypted in any way."

From Gavin, here:
http://bitcoin.stackexchange.com/questions/2549/comment-to-in-the-api

Cheers~
sr. member
Activity: 321
Merit: 250
sr. member
Activity: 321
Merit: 250
comment and comment-to are optional parameters to sendtoaddress() and are undocumented.

from: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
Quote
sendtoaddress     [comment] [comment-to]    

is a real and is rounded to 8 decimal places. Returns the transaction ID if successful.

Google and forum search turn up zilch.

I tried reading the bitcoin client source code, and traced it down as far as CWallet::CreateTransaction(), still with no clue.

So, how are these parameters used if present?  Do they go over the network, or are strictly for local use?
Jump to: