Тёмный

ERC20 Token Tutorial | Create Your Own Cryptocurrency 

Block Explorer
Подписаться 39 тыс.
Просмотров 132 тыс.
50% 1

In this ERC20 token tutorial you will learn how to create your own cryptocurrency as an ERC20 token on Ethereum. We cover all of the steps from development and testing to deployment. Topics covered include testing in the Remix editor, creating a project with Hardhat, token design, ERC20 smart contract development, smart contract testing and deployment to Ethereum.
Project repo on GitHub:
github.com/jspruance/erc20-tu...
Ethereum ERC20 Standard:
ethereum.org/en/developers/do...
Open Zeppelin ERC20 Documentation:
docs.openzeppelin.com/contrac...
If you've created your own token, I'd love for you to send me some (if you want)!
My wallet address:
0x3B5c1926441EC9bE1FA179831f9E6ea9b9205b2f

Наука

Опубликовано:

 

10 сен 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 448   
@adityasingh11156
@adityasingh11156 Год назад
Thanks😊 for sharing it. Your teaching style is very good. I like how you explain in detail each related concept smoothly rather than rushing through topic fastly.
@BlockExplorerMedia
@BlockExplorerMedia Год назад
Thanks Aditya - I appreciate the feedback and glad you liked it.
@alexismollet6751
@alexismollet6751 Год назад
I loved this video very new to coding and got stuck on some coding errors, but your explaining was very detailed and I watched the whole thing anyway
@suryarghyasaha4984
@suryarghyasaha4984 Год назад
I'm new to Blockchain Development and your videos helped me so much to grasp all the concepts so fast. You're an amazing teacher and I look forward to learning more and more from you. And since I recently made my own ERC20 token inspired by this tutorial, I sent some of them to the wallet address you mentioned in the descriptions. Thank You So Much man. Please keep up the good work.🙏🤝
@BlockExplorerMedia
@BlockExplorerMedia 10 месяцев назад
Thanks so much and congrats on your token. May I know the smart contract address so I can import the token in my wallet? Nice work : )
@AroseLove
@AroseLove 11 месяцев назад
Amazing great stuff a few additional errors here and there (my own doing as only downloaded visual studio code today so was mainly extension errors) Thank you so much for this tutorial, there isn’t another started tutorial I’ve seen as good as this. 🙏🏻
@TRVLCreative
@TRVLCreative Год назад
Awesome video. Awesome teacher. Thank you for taking the time to teach the world about web3 effectively :)
@tokunbosuleimon4802
@tokunbosuleimon4802 Год назад
Thanks😊 for sharing it. Your teaching style is very good. I like how you explain in detail each related concept smoothly rather than rushing through topic fastly, and please can you do a front -end
@rosariosway
@rosariosway 11 месяцев назад
Thank you for this video! I have learned a lot of stuff through it, you did an excellent job! 👏
@osempo
@osempo 8 месяцев назад
Amazing video, the best tutorial on how to create and deploy a token, I hope you keep uploading content more often!
@somnathmondal5561
@somnathmondal5561 Год назад
Exited for this video ,, great work man 🤜🤛
@BlockExplorerMedia
@BlockExplorerMedia Год назад
Thanks Somnath! 🤛
@serjoka77
@serjoka77 Год назад
Great Tutorial, thanks for sharing! One question: just curious why didn’t use the ownable extension of OpenZeppelin instead of creating a custom access modifier?
@andrecastro7817
@andrecastro7817 Год назад
hey thanks alot for your video!! can this be deployed on the Binance Smart chian Network ? im trying to make one that taxes and gives reflections on each transactions.
@REZAZIMohamedabdessamed
@REZAZIMohamedabdessamed Год назад
Thanks for the quality explanation. I've a question, on the Transfer method I checked the original ERC20 implementation and they didn't multiply the amount input with the decimals... however it is still working (the balance got updated correctly).. how is that
@elmmacwebmobileapps
@elmmacwebmobileapps Год назад
Thanks for teaching master. I appreciate. Question is, how do you give or set a value to the token. say 1000000 tokens, have seen in the tutorial wher it say 1000000 and value $0.00 | so ho do i change or give value to the tokens.??
@MikeDougherty
@MikeDougherty Год назад
It's been a while, so maybe you realized this already, but at 1:10:00 the explorer shows two transfers. One for the 1,000,000 and another to a different address for 50. I assume that is the blockReward you were trying to find toward the end, no?
@ivanlagade
@ivanlagade Год назад
Continue making valuable content sir. God bless you more.
@galeraonthebeat
@galeraonthebeat Год назад
Why do we need ERC20Capped if we created the same function (_mint) inside our token contract? We do not have a function that overrides cap value so we could just use our cap value that we could declare in constructor.
@nosktech7818
@nosktech7818 Год назад
Can you show or direct me to adding the coding for a “creator reward” for receiving a percentage on every transaction , thank you great walk through 👍
@brunorocha9898
@brunorocha9898 Год назад
great teacher.. thank you
@thatwasgaming6225
@thatwasgaming6225 Год назад
thank you so much, this was an amazing video
@telego1151
@telego1151 3 месяца назад
Hey, thank you for the video, super thorough and helpful! One quick question though, is the coding the same for minting and BlockRewards now that Ethereum has moved to Proof of Stake or should we do anything different?
@UsmanKhan-nc2md
@UsmanKhan-nc2md Год назад
honestelly sir this is one of the best vidio
@abelasaya8709
@abelasaya8709 8 месяцев назад
Thanks a lot, i am grateful for the video. cheers
@danielasema5988
@danielasema5988 Год назад
great tutorial. Thanks so much
@mobiactive
@mobiactive 4 месяца назад
Good morning, to create a BSC network, do I need to change the router or do I have to change something else in the code?
@jhhnadkins5669
@jhhnadkins5669 Год назад
Hello, thanks very much for video. Process is same for bep20 token too? Can I find out? And can we add halving?
@deekshanayak5688
@deekshanayak5688 Год назад
Sir, your explanations have that clarity. Can I print token name,symbol on console like how you've shown the deployed address on console?
@MrPotatoHeadFX
@MrPotatoHeadFX Год назад
Thank you for this. I was reading the solidity lang documentation and noticed that for large numbers it is ok to use 10e6 instead of 10000000 but when watching this and other videos no one seems to be using that style. Is there a reason why? my coding background is in matlab so for me its much easier, and cleaner to use the 10e6 notation
@chams2385
@chams2385 Год назад
BRO , YOU ARE LEGEND
@makindeoluwasegun4188
@makindeoluwasegun4188 Год назад
Thanks for this 🙏
@pantherverse
@pantherverse Год назад
Hey man, am getting this error 'aquaToken contract "before each" hook for "Should set the right owner": HardhatError: HH700: Artifact for contract "AquaToken" not found.' What might be the problem?
@UsmanKhan-nc2md
@UsmanKhan-nc2md Год назад
Thank You So much Sir I learned Alot
@Elizabethomo
@Elizabethomo 8 дней назад
😊 awesome video, explanation on point
@advikmarini
@advikmarini 11 месяцев назад
I am getting another error when I try to run "npx hardhat run --network rinkeby scripts/deploy.js" This is the error that I am getting: TypeError: no matching function (argument="key", value="deployed", code=INVALID_ARGUMENT, version=6.6.4) I understand that it has something to do with the ethers version that I am using, but I'm not quite sure what the substitute would be for "deployed" in the current version that I am using for ethers, and I haven't been able to find a substitute on the internet for this function. Thanks!
@williamwallace5707
@williamwallace5707 4 месяца назад
Very in-depth, great tutorial. I was wondering what type of environment you are coding in. Are you using Docker, a VM, cloud or your PC? I am new to coding, very basic understanding and am concerned about installing and experimenting with various scripts/software and blockchain based things.
@mrcrazy3960
@mrcrazy3960 Год назад
Please I’m getting this error any help “Before each” hook for “should set the right owner”: HardhatError; HH700: Artifact for contract “sunToken” not Found
@spadanaco.638
@spadanaco.638 Год назад
Hello. How to do that on iPhone? Does that work? Not sure why but whenever I get on remix I get an error message.
@paulgallant3675
@paulgallant3675 11 месяцев назад
Brilliant video thank you
@TimKariuki
@TimKariuki Год назад
Is it possible to add custom metadata to a token?
@GauravSinghnikumb
@GauravSinghnikumb Год назад
the soidity version also takes into consideration the openzeppelin pragma solidity version , so keep that in mind
@drakegao816
@drakegao816 Год назад
Derived contract must override function "_mint". Two or more base classes define function with same name and parameter types when I inherited those two contracts.
@Bobbybaitz
@Bobbybaitz 3 месяца назад
Hi, I'm running into this error: npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + npm init + ~~~ + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundE xception Any help?
@thelegendjustice
@thelegendjustice 7 месяцев назад
it says "infinite gas" for me on creating the constructor, what did i do wrong ? thanks
@f_ftactics7928
@f_ftactics7928 Год назад
for me somehow the initial balance is zero in my truffle test. I did use _mint function. Any ideas why? Thanks.
@GLOBALTECHFUSION
@GLOBALTECHFUSION 3 месяца назад
If you want to split the sale, First Pre-sale and after that the main one, how to be organized in the contract?
@brenobertulucci134
@brenobertulucci134 Год назад
on minute 53 i received this error on 3 last test function: TypeError: Cannot read properties of undefined (reading 'address')
@vaerube6670
@vaerube6670 11 месяцев назад
thanks for sharing... hi sir @BlockExplorerMedia i got a question, when I perform the npx hardhat test, it shows "0 passing (1ms) ". I notice your terminal using is "node" instead of "powershell", is that the problems ?& how to solve it? 🙏
@aayushchopra6080
@aayushchopra6080 4 месяца назад
Same, unsure what's goin on
@MichaelWongManTak
@MichaelWongManTak Год назад
Sir, thanks for your video. Is it possible to get support in real time guidance in setting up our token. ??
@prathikp4253
@prathikp4253 Год назад
I am getting Error HH411: the library @openzeppelin/contracts, imported from contracts/..., is not installed. Try installing it using npm. Can you help me with this. I tried installing all versions but still throws this error when I compile
@24PetrocoinLLC
@24PetrocoinLLC 5 месяцев назад
can you include initial token pricing in the contract before deployment?
@officialjobsdekho5426
@officialjobsdekho5426 Год назад
bro which code editor should I use to install hardhat? I am not familiar with visual code. If you can make a video about visual code for deploying the contract it would be easy to understand.
@VVAIBHAVTIWARI
@VVAIBHAVTIWARI 3 месяца назад
vs code
@srijanshovit844
@srijanshovit844 Год назад
thanks..I finished my own version of it
@PulokPandit
@PulokPandit Год назад
what will be the procedure to deploy it to main net and does it gonna cost me something ??
@dannyellis971
@dannyellis971 Год назад
Just one question, To deploy my token. Do I just have to pretty much drag my Token.sol file over to Remix and Compile/Deploy in Remix? I tried it on the Goerli Test network and it all seemed to work well I'm just trying to get over the finish line here. Thanks so much
@kevinjurden9114
@kevinjurden9114 Год назад
Could you create a video showing how to create a Token, and instead of minting rewards to 'miners'. Create an Liquidity pool, and mint rewards to those who are staking? Could be implemented into a Defi/Dapp video
@hberrios23
@hberrios23 10 месяцев назад
do you have any videos on creating a coin on different block chain network or all of the are the same?
@BlockExplorerMedia
@BlockExplorerMedia 10 месяцев назад
So far I've only done Ethereum, but the code would be the same for any EVM-compatible chain (such as Polygon). You would just create a network config specific to that chain in the Hardhat config file and then target that for your deploy. For something like Solana it would be totally different code and process though.
@jaspaw.5473
@jaspaw.5473 Год назад
Am getting an "import error" on my code which I don't know how to solve. I downloaded your source code and it is giving me the same error.... I have a feeling that something with my visual code IDE is not right. ,Could someone please help me with this, it's been stressing me out for hours now. Thanks in advance.
@skit6ixofficial
@skit6ixofficial Месяц назад
So how do you load the coin to main net and on crypto exchanges?
@Dekon7
@Dekon7 Год назад
What is presale, private presale l, fairlaunch, stealth launch etc. Plz make a video on that sir! On all the launch types
@armagosa2
@armagosa2 Год назад
Awesome Video, can you do one similar with a tax function opposed to a burn function?
@JohnDoe34548
@JohnDoe34548 3 месяца назад
great video, sir.
@astrofoundation
@astrofoundation Год назад
I love your videos mate! :) ...
@BlockExplorerMedia
@BlockExplorerMedia Год назад
Thanks Bela, glad they're helpful!
@indiuma
@indiuma Год назад
still get solidity version error tho it matches to hardhat file doesnt compile
@bearsbestanimals
@bearsbestanimals Год назад
Hello, how do I add a picture to the token?
@VUVANDUNG22
@VUVANDUNG22 4 месяца назад
i have error please help me : Should set the max capped supply to the argument provided during deployment: TypeError: Cannot read properties of undefined (reading 'formatEther')
@noahcurry4510
@noahcurry4510 Год назад
Around 15 minutes, we’re trying to deploy and run transactions but I keep getting a “false transaction mined but execution failed” it looks like it’s giving me an error pertaining to gas fees. Anybody know a fix?
@kingcryptotv1539
@kingcryptotv1539 Год назад
Great Communication
@sirnawaz
@sirnawaz Год назад
39:45. `block.coinbase`.. How does this field `coinbase` come from? Is it defined by (or related to) Coinbase Exchange? What is the type of `block`? Is it some `any` kind where arbitrary fields can be added by anyone?
@SimonSpiteri-bo2ty
@SimonSpiteri-bo2ty Год назад
hey, this is fantastic. can we add eth reflections for things like a marketing wallet/treasury? can you do a little how to on those types of things? love your content
@mikelac2
@mikelac2 Год назад
Will this work with prc-20?
@katour001
@katour001 Год назад
i just want to say thank you You are a Hero
@BlockExplorerMedia
@BlockExplorerMedia Год назад
Thanks for the kind words!
@cryptotree999
@cryptotree999 Год назад
Very nice and wonder full video
@spyboy3924
@spyboy3924 Год назад
thanks for the video 🙌🙌
@geradinfotso
@geradinfotso Год назад
Thank you for your Usefull videos.
@kirazami2282
@kirazami2282 Год назад
Hi Rinkeby test network has been deprecated, any solutions ? Thanks
@0cho8cho72
@0cho8cho72 Год назад
really nice tutorial !!!
@fsilva-electrica-silva-orizaba
@fsilva-electrica-silva-orizaba 5 дней назад
Thanks!
@kruzoty929
@kruzoty929 5 месяцев назад
hello, how i can add a web site and a twitter account to my contract erc20 ? a specifical code lign ?
@jacektrocinski6337
@jacektrocinski6337 7 месяцев назад
@47:00 I believe there's no need to duplicate the code in the _mint override of the token. Simply using super should suffice, as it will invoke the capped contract logic, which then triggers the ERC20 logic. This approach should maintain functionality without redundant code.
@user-gr7ff2kz5c
@user-gr7ff2kz5c 10 месяцев назад
Hello thank you for the video, how can we deploy to main net, can you help with the configuration?
@BlockExplorerMedia
@BlockExplorerMedia 10 месяцев назад
I pinned a comment to the top of this video explaining how. Let me know if you have any other questions.
@samrahul1993
@samrahul1993 7 месяцев назад
when ever im tring to do npm init.. its giving me an error npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + npm init + ~~~
@hiyutup8541
@hiyutup8541 Год назад
how can ı reach full documentation for test hardhat ?
@ObscureOdysseys
@ObscureOdysseys 11 месяцев назад
Alright so after a lot of debugging I actually got it to work on sepolia, what a great feeling! But, you never went back and taught us how to deploy on mainnet. Is it simply changing the infura endpoint link to mainnet link?
@BlockExplorerMedia
@BlockExplorerMedia 10 месяцев назад
Yes, exactly. I pinned a comment to the top explaining. A lot of people have been asking this. Thanks!
@TheTravelHubs
@TheTravelHubs Год назад
thanks, bro, I created one token and I sent it to your wallet 1m also... thanks again
@motivationalwebsite7173
@motivationalwebsite7173 Год назад
Hello bhai
@elmergriffen3010
@elmergriffen3010 Год назад
How do i contact you?
@williamchen8368
@williamchen8368 Год назад
I am trying all on your steps, but i am stuck at the contract RTXToken is ERC20 {....sadly i cant compile with success.
@TopMutt
@TopMutt Год назад
Does this tutorial cover whole process from start to end in complete?
@BillyBishop589
@BillyBishop589 Год назад
thanks for this great tutorial.. first tutorial in this blockchain space that worked.. everytime i write code i hit a brick wall with deprecated and outdated info.. thanks much when i go mainnet on polygon ill definitely will be sending a fat stack your way thanks again..
@coinlisting_net
@coinlisting_net 10 дней назад
how is your token doing mate.
@trihuynh5840
@trihuynh5840 Год назад
Awesome thanks
@jamesluiz3889
@jamesluiz3889 Год назад
I think I can't transfer the tokens to another address, the transaction keeps failing
@albechannel1
@albechannel1 Год назад
Thanks a lot for this! Just a question: now that Rinkeby has been deprecated, would you suggest (to a newby like me…) how to use another testnet?
@shjndohjkaru
@shjndohjkaru Год назад
you can using sepolia for same
@advikmarini
@advikmarini 11 месяцев назад
Rinkeby has now been turned into Sepolia by the same company “alchemy” so I just went ahead and used the sepolia test network
@SuryaVino
@SuryaVino 4 месяца назад
at 44.35 you dont have artifacts folder and then 44.41 artifacts is shown here how
@BlockExplorerMedia
@BlockExplorerMedia 10 месяцев назад
A lot of people have been asking how to deploy to mainnet. In retrospect, I should have had that in the video! First add a 'mainnet' configuration in hardhat.config.js, under 'networks'. Then add your mainnet endpoint from Infura to the 'url' field. Finally target that configuration when you issue the deploy command, like this: 'npx hardhat run scripts/deploy.js --network mainnet'. Hope this helps.
@bethchen87
@bethchen87 8 месяцев назад
@BlockExplorerMedia I was inplementing your code at 1:03:45, but got the error message: TypeError: oceanToken.deployed is not a function at main (C:\Projects\erc-20-tutorial\ocean-token\scripts\deploy.js:8:20) at processTicksAndRejections (node:internal/process/task_queues:95:5) What might be the problem? Can somebody figure it out?
@jcw1197
@jcw1197 Год назад
Your block reward was showing in the tx hash! Just FYI, 🙂
@KCryptoYT
@KCryptoYT Год назад
This is great!
@BlockExplorerMedia
@BlockExplorerMedia Год назад
Thanks Crypto Guy. Great work on your channel as well!
@mr.dzm9480
@mr.dzm9480 Год назад
why remix vm london and not ínjected web3????
@alihosseini7708
@alihosseini7708 Год назад
Hi, why i dont have any other mainnet than görli and sepolia (59:10)?
@BlockExplorerMedia
@BlockExplorerMedia Год назад
Other testnets where phased out after the Ethereum 2.0 merge in Sept 2022. The recommendation is to use Goerli going forward.
@opionetics
@opionetics 4 месяца назад
whats the block reward for?
@adonides
@adonides Месяц назад
11:08 Why does the message “infinite gas 733800 gas” appear to me? How can I avoid this? Thanks!
@ediilie664
@ediilie664 Год назад
whitch is the difference to deploy on maynnet ?
@EclipseEgg
@EclipseEgg 5 месяцев назад
will you get in trouble if you don't include MIT license statement?
@myhapylife
@myhapylife Год назад
I am new to Solidity , and I got to the deployment part, where I got this message: TypeError: no matching function (argument="key", value="deployed", code=INVALID_ARGUMENT, version=6.6.4) As I don't understand it fully, any help would be awesome. All files 7 are compiled successfully before that. I tried on Goerli and Sepolia net. I can share full error message. Hope for the best.
Далее
Faucet Smart Contract Tutorial | Solidity Tutorial
47:53
How to Become a Blockchain Developer
25:33
Просмотров 53 тыс.
Я ВЕРНУЛСЯ 🔴 | WICSUR #shorts
00:57
Просмотров 335 тыс.
2DROTS vs WYLSACOM! КУБОК ФИФЕРОВ 1 ТУР
07:25
They got a Golden Buzzer 🤣✨
00:46
Просмотров 23 млн
Run your own AI (but private)
22:13
Просмотров 1,3 млн
But how does bitcoin actually work?
25:16
Просмотров 15 млн
3 Levels of WiFi Hacking
22:12
Просмотров 1,7 млн
Fastest way to become a Web Developer
9:47
Просмотров 592 тыс.
Flash Loan Arbitrage | Aave Flash Loan Tutorial
48:34
Просмотров 138 тыс.
How I used AI to make a $20M memecoin
36:58
Просмотров 428 тыс.
How to make your own cryptocurrency scam
19:55
Просмотров 650 тыс.
These Coding Projects Give You An Unfair Advantage
14:39
Prices & Poco M4 Pro 5G
1:00
Просмотров 267 тыс.
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 27 млн
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 27 млн
Красиво, но телефон жаль
0:32
Просмотров 1,4 млн