Is there a way to create a wallet from a smart contract in Solidity ? If there is how can i do it ?
For example i want to create a smart contract that on deploy creates a new wallet and saves its address into an array.
Thanks for the help.

1 Answer 1


That is no possible. I guess because generating the privateKey is costly. But you can generate first a wallet localy with web3 and then with solidity deploy a smart contract that get the address of the wallet as Owner and that contract has a method to transfer ether or token and that method can only triggered by Owner.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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