1

Example of a payment processor or an ecommerce website.

I would like to generate unique ETH address for each transaction.

I'm genuinely curious what is the the best way of doing it?

Potential solution

Generate 10000 addresses from a mnemonic, keep them on the backend. Front-end making API call to fetch a new one.

Screenshot from "Mastering Bitcoin" by Andreas:

enter image description here

You can assume I'll be able to sweep addresses when the gas prices are low.

Or maybe there is a better option?

1

One option is to use CREATE2 opcode to assign a wallet for each customer. These contracts can forward any payment to a central wallet. Those contract don't have to be deployed before they are used.

Some links with more details and use cases

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.