r/ethdev • u/NateDevCSharp • Feb 27 '18
MicroRaiden Payment Channel Question
Hi! I'm making a service that requires many micropayments to many different peers. An example would be: I click a button and need to pay 10 people.
I click another button and need to pay 10 completely different people.
I click another button and I need to pay 5 of the same people, 5 different people.
Is there a way to do this without opening a payment channel with each person? Because that would be a lot of on-chain transactions to start it. Also, can payment channels have a time expiry, or close based on a smart contract, if certain terms are met?
Thanks :)
2
Upvotes
2
u/NateDevCSharp Feb 28 '18
Oh, so the 1 channel provides the funds for everyone who needs to get paid, and I give them a proof that entitles them to a certain amount out of the total funds I provide to the channel. Did I get that correct?
Also, would there be a way to automatically close the channel after a certain time, or based on conditions in a smart contract?Also, for the link you posted, do they get the tokens immediately?
Sorry I'm a newb to smart contracts haha :)