Using the comment parameter in SendToAddress, is it accessible by the GetTransaction label?

Using the comment parameter in SendToAddress, is it accessible by the GetTransaction label?

So when sending a transaction, i would like to include the username of the sender in the comment field.

$transaction = $bitcoind->SendToAddress($toaddress, $dAmount, $username, "", true);

Then retrieve it later using getTransaction on Walletnotify, to send an email to the sender.

https://bitcoin-rpc.github.io/gettransaction.html

Says that the 'label' parameter inside details, is for comments regarding transactions.

Will the content in the comment field of SendToAddress show up when doing getTransaction(TXID) on the specific transaction?

What about the comment_to field of sendtoaddress, it does not seem to be included in getTransaction?

ListTransactions seems to have a comment field, i just wonder if it's the same case with GetTransaction, and why is it called label and not comment?

https://ift.tt/2s91R9U

Comments

Popular posts from this blog

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password

When downloading the blockchain my application is become unusable, is there an issue with my code or am I using the BitcoinJ library incorrectly?

Mistakenly sent BTC from my personal wallet back to one of the exchange wallet addresses that I had received BTC from before - help recovering!