0

I'm doing a project where I want to make a banknote for an etherum, but the main problem is I want the user to access the hidden private key of ethereum wallet, access it and withdraw the full amount of ether inside the address, but not in parts

for example, I have a 0.1 ether banknote, I want to transfer it to my personal wallet, I will access the wallet of the banknote where the 0.1 ether is present, but I should withdraw whole 0.1 ether from the wallet, withdrawing 0.04 or in parts would not be allowed.

Is there any approach to do this?

10
  • you can impose that the withdrawl is limited to the entire amount. please post some of your code for more clearence. Aug 14, 2021 at 13:43
  • Actually I have not developed any code for it, I just want user to access wallet by metamask and withdraw right from there Aug 14, 2021 at 14:23
  • if he has access to the private key he can withdraw whatever he decide. Which is to say ,you can't do it. you can make a token Aug 14, 2021 at 14:40
  • if you don't want to write a contract then google about "custodial wallet". You will have to hold the private key and do all transactions on the behalf of the user. But this is very risky business and you will be constantly receiving hackers attempts to steal funds
    – Nulik
    Aug 14, 2021 at 15:24
  • @Nulik no this is all about decentralisation, I don't want it centralised Aug 14, 2021 at 18:27

0

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.