0

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://bitcoincore.org/en/doc/0.16.0/rpc/wallet/gettransaction/

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?

Your Answer

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

Browse other questions tagged or ask your own question.