gochain / web3

A CLI tool to interact with web3 blockchains - Ethereum, GoChain, etc
https://gochain.io
Apache License 2.0
401 stars 89 forks source link

In these examples, how do we set the amount of tokens created in a ERC20 contract? #257

Open bitcoinmeetups opened 2 years ago

bitcoinmeetups commented 2 years ago

Hello,

I'm BM. A very nice and polite guy.

In these examples, how do we set the amount of tokens created in a ERC20 contract?

I can only see two options, modifying the name and the symbol of the token. But also being able to specify the amount of tokens to be issued using web3 would be useful. Alternatively, please suggest an easy erc-20 template that can be compiled with web3.

treeder commented 2 years ago

Try something like this:

https://ethereum.stackexchange.com/questions/112215/how-to-specify-max-supply-erc20

On Tue, Mar 29, 2022 at 6:41 AM bitcoinmeetups.org @.***> wrote:

Hello,

I'm BM. A very nice and polite guy.

In these examples, how do we set the amount of tokens created in a ERC20 contract?

I can only see two options, modifying the name and the symbol of the token. But aalso being able to specify the amount of tokens to be issued using web3 would be useful. Alternatively, please suggest an easy erc-20 template that can be compiled with web3.

— Reply to this email directly, view it on GitHub https://github.com/gochain/web3/issues/257, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAASQMRKTF2B2354EHWGEATVCLM33ANCNFSM5R57ATAA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bitcoinmeetups commented 2 years ago

Can you please make two working examples for gochain web3:

a) A command that issues ERC-20 with a specific amount

b) A command that issues an NFT with a pointer to metadata for example in IPFS.

The commands should preferably be oneliners and updated once in a while so that they always work. These commands should be on the front of the readme.MD file so that new users can find them easily.