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
Post a Comment