4
1
I want to write code that accepts a transaction, and afterwards "pays back" some amount to the origin of the transaction.
Assume users will be using the standard client. Will transactions have a single input, or must I handle the situation where a transaction have multiple inputs?
Can I just choose one of these inputs and pay back to that input? I want to avoid having to request users from entering a payout Bitcoin address - it's so much neater to just pay back to the same address they used.
Hmm. So I have to ask the user to provide a return address? This sucks :( – ripper234 – 2012-01-01T06:50:00.313
Well, that depends. You could make an optional return address field, and clarify that if the user is not using the default client (or knows exactly what he's doing) he should fill this. It would be a good idea for eWallet providers to associate change addresses with the originating client, and in an ideal future where it is reasonable to expect eWallets to do this, it's safe to send to the change address. Also eWallets could offer the option to send a payment by routing it through an address associated with the client first. – Meni Rosenfeld – 2012-01-01T07:57:30.190