Can I use approve/transferfrom function for ETH coin?

Ethereum Asked by ikaop on September 1, 2020

Can I use approve/transferfrom function for ETH coin?
Please let me know how to apply approve/transferfrom to ETH as erc20 tokens.

Thank you!

One Answer

Not as a normal feature.

You could make a contract for it. Users would have to be convinced to keep some of their money on deposit and you would implement the ERC20 interface.

Alternatively, you could make a reserve-backed token and sale/buy-back contract offering a pegged 1:1 rate of exchange.

Possibly neither of those solutions has any practical value. You didn't say why you want to. It might be worth noting that approve and transferFrom was to address a limitation of tokens that native Eth doesn't suffer from.

Hope it helps.

Answered by Rob Hitchens on September 1, 2020

Add your own answers!

Related Questions

Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir