0

There is an option to send Ether while deploying smart contract(creating ERC20 token)enter image description here

How much Ether should one send to be able to successfully do transactions with ERC20 Token ?

Is there any relation or formula to calculate the amount of Ether that you need to send on the basis of total supply ?

For Example:- You have created one ERC20 Token and initializes total supply with 9999999000000000000000000.enter image description here

Then, how much ether you have to send ?

1

There's no need to fund an ERC20 token contract with any ether at all.

In the context of an ERC20 token, ether is only used as a means to pay for "gas" (transaction fees). You will need to pay for gas to deploy the contract, and then people who use your token will pay for gas to interact with it, e.g. when transferring tokens.

  • That's OK. For example: The peoples who are using my ERC20 token doesn't have Ether in their account, then how can they transfer ERC20 tokens ? – Sandesh Sidana Dec 22 '17 at 4:32
  • They can't. No one can perform a transaction without paying for gas (in ether). – smarx Dec 22 '17 at 7:40
0

If you mean transferring ERC20 tokens from a wallet to another, then you have no need to feed the ether field. You'll just need to feed the transaction with gas.

0

I think you're confusing ERC20 tokens with ether. Tokens are simply variables in smart contracts that get allocated to particular addresses in a mapping (see here for an informative guide).

It is possible to send ether in the "value" field when creating a contract, however, the constructor of the contract will need to have the payable modifier.

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.