This is a follow-up question to What does the ATTACH TO TANGLE button do?
When using the js-/Python-API, I assume that you have to specify the receive address as the target of the 0-value transaction.
The question is, with the API, which address do I use as the source?
Is it OK to reuse a source address for attachments? Let's say I choose the address of index 1000 as the source address for attachments, and never ever transfer any value to it, so that I don't care if it does get compromised when I use it to attach several target addresses to the tangle. Is this a bad idea? Or can I use an arbitrary source address, like the 9999...-address?
How does the wallet do it?