ERC20 Token Tutorial | Create Your Own Cryptocurrency

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • 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/jsp...
    Ethereum ERC20 Standard:
    ethereum.org/e...
    Open Zeppelin ERC20 Documentation:
    docs.openzeppe...
    If you've created your own token, I'd love for you to send me some (if you want)!
    My wallet address:
    0x3B5c1926441EC9bE1FA179831f9E6ea9b9205b2f

ความคิดเห็น • 460

  • @kevinjurden9114
    @kevinjurden9114 ปีที่แล้ว +7

    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

  • @adityasingh11156
    @adityasingh11156 2 ปีที่แล้ว +21

    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  2 ปีที่แล้ว +1

      Thanks Aditya - I appreciate the feedback and glad you liked it.

  • @suryarghyasaha4984
    @suryarghyasaha4984 ปีที่แล้ว +9

    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  ปีที่แล้ว +1

      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 : )

  • @MikeDougherty
    @MikeDougherty ปีที่แล้ว +3

    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?

  • @jacek0x-b7u
    @jacek0x-b7u 9 หลายเดือนก่อน +2

    @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.

  • @BlockExplorerMedia
    @BlockExplorerMedia  ปีที่แล้ว +1

    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 10 หลายเดือนก่อน

      @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?

  • @talhagerginn7672
    @talhagerginn7672 ปีที่แล้ว +2

    Error: cannot estimate gas; transaction may fail or may require manual gas limit Help me

    • @TradeMarker-t4f
      @TradeMarker-t4f ปีที่แล้ว

      same here. are there any solution here?

  • @HexElement
    @HexElement 2 ปีที่แล้ว +3

    Hey bro I have a quick question. This is my first crypto Im messing around with and am a total noob. When it comes to the Capped supply vs the Max Total Supply, I want to own 80% of the token and have 20% on the market. I put the cap amount at 10 mill and my amount to send the owner 8 mil. Does this mean there is only 8 mil in existence and 2 more mil can be minted.... Or does it mean that 2 mill can be bought and or minted? I need there to be a max supply of 10 mil and 2 mil of that is ready to be traded by the public, but etherscan is only showing 8.
    I know this is a crazy noob question, but I appreciate your time bro! Awesome tutorial!

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +3

      hey Hex - great question. so for the tokens that you want to make publicly available on the market, those should go to your wallet first (at the time of contract deployment) and then you would transfer those tokens from your wallet into liquidity pools, for example on Uniswap, to be made available for trading. the remaining 20% left unminted could be for miner rewards or any other utility that you can think of. at least that's how I've always done it. some tokens don't have any kind of time-based minting or mining rewards. so at the simplest, you could send yourself 100%, provide 20% of that as liquidity and keep the remaining 80%. hope this helps.

    • @HexElement
      @HexElement 2 ปีที่แล้ว

      @@BlockExplorerMedia You just saved my life! Thats exactly what I was wanting to figure out. Thank you man, you got a subscriber!

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว

      You bet - thanks!!

    • @franklinokafor3229
      @franklinokafor3229 ปีที่แล้ว

      ​@@HexElementcan you guys teach me i will pay.

    • @Globetrottersz1
      @Globetrottersz1 ปีที่แล้ว

      @@BlockExplorerMedia a quick one, have compiled as successful unfortunately on. Js test have only managed 3 passing and 4 failing. Where might I be wrong!!?. Thanks in advance

  • @jaspaw.5473
    @jaspaw.5473 ปีที่แล้ว +1

    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.

  • @andrecastro7817
    @andrecastro7817 ปีที่แล้ว +1

    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.

  • @elmmacwebmobileapps
    @elmmacwebmobileapps ปีที่แล้ว +1

    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.??

  • @jcw1197
    @jcw1197 ปีที่แล้ว +1

    Your block reward was showing in the tx hash! Just FYI, 🙂

  • @xTazzyD
    @xTazzyD 20 วันที่ผ่านมา

    In the beggining of the program VS its says: 'npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operabl
    e program. Check the spelling of the name, or if a path was included, verify that the path is cor
    rect and try again.
    At line:1 char:1
    + npm init
    + ~~~
    + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException'
    can you tell me what to do ?

  • @mar.c_o7346
    @mar.c_o7346 2 หลายเดือนก่อน

    PS F:\$beans> npm init
    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:Str
    ing) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    i cant pass haha, pls help me..

  • @Dekon7
    @Dekon7 ปีที่แล้ว +1

    What is presale, private presale l, fairlaunch, stealth launch etc. Plz make a video on that sir! On all the launch types

  • @tanaytambe396
    @tanaytambe396 ปีที่แล้ว +1

    Can we use goerli test network ? in my system there is not rinkeby network avaliable. Can you please help me how can i go further?

    • @kirazami2282
      @kirazami2282 ปีที่แล้ว

      Hi did you find a solution ? Thanks

    • @tanaytambe396
      @tanaytambe396 ปีที่แล้ว

      @@kirazami2282 not yetbro!

  • @vaerube6670
    @vaerube6670 ปีที่แล้ว +1

    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 7 หลายเดือนก่อน

      Same, unsure what's goin on

  • @albechannel1
    @albechannel1 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      you can using sepolia for same

    • @advikmarini
      @advikmarini ปีที่แล้ว

      Rinkeby has now been turned into Sepolia by the same company “alchemy” so I just went ahead and used the sepolia test network

  • @ng8530
    @ng8530 ปีที่แล้ว +1

    Please, a tutorial to launch an ICO 🙏🙏🙏

  • @UsmanKhan-nc2md
    @UsmanKhan-nc2md ปีที่แล้ว +2

    honestelly sir this is one of the best vidio

  • @SoftWorkDotNg
    @SoftWorkDotNg 2 ปีที่แล้ว +1

    The correct link contains a subdirectory "blob", that was what you missed.

  • @MohamedMokhtar101
    @MohamedMokhtar101 หลายเดือนก่อน

    Thank you so much for an amazing explanation! I have a question if you can explain or link to video about the concept of pegging a token to an already established stable coin like USDT C, and what would be the impact in implementing this pegging of a token?

  • @alexismollet6751
    @alexismollet6751 ปีที่แล้ว +4

    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

  • @stevelawless1
    @stevelawless1 หลายเดือนก่อน

    Hey I loved your video, I have a dating app just about to launch which I am looking at creating a token for a variety of reward reasons for my users, I develop in javascript and php and wondered if you had a video which would build on this video, and tie in how to programmatically send tokens to users who meet certain goals, any help would be great thanks.

  • @shaikhnabeel6443
    @shaikhnabeel6443 17 วันที่ผ่านมา

    Thankyou you really made it look so simple ❤️. Can you tell me if can make NFT on testnet and buy that nft using test ethers? Can i do that?

  • @nehmetekle7274
    @nehmetekle7274 หลายเดือนก่อน

    thanks for this amazing video, I have a question can I use your strategy and implement it to my senior project? I am using angular as frontend.

  • @ObscureOdysseys
    @ObscureOdysseys ปีที่แล้ว

    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  ปีที่แล้ว +1

      Yes, exactly. I pinned a comment to the top explaining. A lot of people have been asking this. Thanks!

  • @Bobbybaitz
    @Bobbybaitz 5 หลายเดือนก่อน

    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?

  • @adonides
    @adonides 3 หลายเดือนก่อน

    11:08 Why does the message “infinite gas 733800 gas” appear to me? How can I avoid this? Thanks!

  • @ardianzzz1
    @ardianzzz1 ปีที่แล้ว

    i got an error :
    TypeError: Cannot read properties of undefined (reading 'formatEther')
    How can you successfully compiled it without importing ether.js?

    • @myhapylife
      @myhapylife ปีที่แล้ว

      I got the same, you managed to solve this?

  • @DogeFi-d9y
    @DogeFi-d9y 29 วันที่ผ่านมา

    hello sir, i am almost 1 year silent viewer of your videos how to create smart contract, i want to create one , and i want to create smart contract with taxes and airdrop but i dont know how to do it. if you upload how, its a big helps to me, thanks

  • @tokenshibs8833
    @tokenshibs8833 4 หลายเดือนก่อน

    can you send me your sample coding program, i am one of your viewer/subscriber and i want to learn more about solidity coding or how to code/create token contract.

  • @jimgarlie
    @jimgarlie 2 หลายเดือนก่อน

    Great video, and I see the Rinkeby is now longer available so can you expand on using Sapolia or any others?

  • @АлександрГудов-э5ч
    @АлександрГудов-э5ч 2 หลายเดือนก่อน

    Hi all! Would you share ,please, how to import assign a picture/avatar for a token?

  • @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?

  • @jhhnadkins5669
    @jhhnadkins5669 ปีที่แล้ว +1

    Hello, thanks very much for video. Process is same for bep20 token too? Can I find out? And can we add halving?

  • @JohnDoe34548
    @JohnDoe34548 5 หลายเดือนก่อน

    but i'd like to see a video on how to orgaise an airdrop of your token, or even get it listed on binance or coinbase.

  • @MarketMasteryMedia
    @MarketMasteryMedia 5 หลายเดือนก่อน

    How can I set Buy and Sell Tax 5% on my token? Could you help me?

  • @Luxorians
    @Luxorians 5 หลายเดือนก่อน

    If you want to split the sale, First Pre-sale and after that the main one, how to be organized in the contract?

  • @nosktech7818
    @nosktech7818 ปีที่แล้ว +1

    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 👍

  • @TRVLCreative
    @TRVLCreative ปีที่แล้ว +3

    Awesome video. Awesome teacher. Thank you for taking the time to teach the world about web3 effectively :)

  • @samrahul1993
    @samrahul1993 9 หลายเดือนก่อน

    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
    + ~~~

  • @BillyBishop589
    @BillyBishop589 ปีที่แล้ว +1

    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 2 หลายเดือนก่อน

      how is your token doing mate.

  • @nighdoria
    @nighdoria ปีที่แล้ว

    Sir
    Is there any code for marketting wallets like this ;
    Someone buy my creating token marketting fee send my marketting wallet. However this fee send my wallet as my creating tokens. I wanna this fee send my wallet as ETH coins. Because when I use this fee. I effect graph negatively. Is there any code like this?

  • @VUVANDUNG22
    @VUVANDUNG22 6 หลายเดือนก่อน

    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')

  • @advikmarini
    @advikmarini ปีที่แล้ว

    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!

  • @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.

  • @Pjaming
    @Pjaming 3 หลายเดือนก่อน

    So how do you load the coin to main net and on crypto exchanges?

  • @TimKariuki
    @TimKariuki ปีที่แล้ว +1

    Is it possible to add custom metadata to a token?

  • @hberrios23
    @hberrios23 ปีที่แล้ว

    do you have any videos on creating a coin on different block chain network or all of the are the same?

    • @BlockExplorerMedia
      @BlockExplorerMedia  ปีที่แล้ว

      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.

  • @officialjobsdekho5426
    @officialjobsdekho5426 ปีที่แล้ว +1

    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.

  • @SSkyreS
    @SSkyreS 10 หลายเดือนก่อน

    Half this stuff is old already lol. Ok tutorial, but most of these things dont work properly anymore.

    • @SSkyreS
      @SSkyreS 10 หลายเดือนก่อน

      And talks nothing about gas limits, etc. Garbage tutorial.

  • @astrofoundation
    @astrofoundation 2 ปีที่แล้ว +1

    Can you make a video where we create an ICO - full dApp ?

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +2

      Yeah I've been thinking about something like that to follow this one up with - thanks for the suggestion.

  • @TheTravelHubs
    @TheTravelHubs ปีที่แล้ว +1

    thanks, bro, I created one token and I sent it to your wallet 1m also... thanks again

  • @telego1151
    @telego1151 6 หลายเดือนก่อน

    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?

  • @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

  • @williamwallace5707
    @williamwallace5707 6 หลายเดือนก่อน

    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.

  • @oraclebjj
    @oraclebjj ปีที่แล้ว

    dumb nnob question. But zepplin now features contract wizard now right, which I'm guessing helps speed things up with the SOL contract files right? BTW this was an awesome video. Idiot proof. Like for people like me : )

  • @thelegendjustice
    @thelegendjustice 10 หลายเดือนก่อน

    it says "infinite gas" for me on creating the constructor, what did i do wrong ? thanks

  • @SuryaVino
    @SuryaVino 7 หลายเดือนก่อน

    at 44.35 you dont have artifacts folder and then 44.41 artifacts is shown here how

  • @AroseLove
    @AroseLove ปีที่แล้ว +1

    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. 🙏🏻

  • @kruzoty929
    @kruzoty929 7 หลายเดือนก่อน

    hello, how i can add a web site and a twitter account to my contract erc20 ? a specifical code lign ?

  • @ThemenTornado
    @ThemenTornado ปีที่แล้ว

    Thanks for that Video
    How can i Pic Tax fees in this Contract?
    Thanks

  • @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

  • @BarrelsBullets
    @BarrelsBullets 6 หลายเดือนก่อน

    ParserError: Expected ';' but got 'public' help please!

  • @vtanz
    @vtanz 6 หลายเดือนก่อน

    Will this contract work for base chain L2 from coinbase. Let me know how to contact you. Thanks

  • @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?

  • @UsmanKhan-nc2md
    @UsmanKhan-nc2md ปีที่แล้ว +1

    Thank You So much Sir I learned Alot

  • @bethchen87
    @bethchen87 10 หลายเดือนก่อน

    @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?

  • @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?

  • @mobiactive
    @mobiactive 6 หลายเดือนก่อน

    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?

  • @tokunbosuleimon4802
    @tokunbosuleimon4802 ปีที่แล้ว +1

    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

  • @brenobertulucci134
    @brenobertulucci134 ปีที่แล้ว

    on minute 53 i received this error on 3 last test function: TypeError: Cannot read properties of undefined (reading 'address')

  • @GauravSinghnikumb
    @GauravSinghnikumb ปีที่แล้ว +1

    the soidity version also takes into consideration the openzeppelin pragma solidity version , so keep that in mind

  • @wilfredolleno6948
    @wilfredolleno6948 ปีที่แล้ว

    Sir could you help me to develop Token for our Church for Special Social Services: 3S Token?

  • @ahmerali3304
    @ahmerali3304 ปีที่แล้ว

    this is not beg friendly at all you just keeps doing without telling the goal

    • @BlockExplorerMedia
      @BlockExplorerMedia  ปีที่แล้ว

      The goal is just to demonstrate how to create a token on Ethereum. Sorry if that wasn't clear! Is there anything I can help clarify?

  • @MuhammedErarslan
    @MuhammedErarslan 25 วันที่ผ่านมา

    Martinez Carol Johnson Brian Wilson Lisa

  • @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.

  • @EclipseEgg
    @EclipseEgg 8 หลายเดือนก่อน

    will you get in trouble if you don't include MIT license statement?

  • @HappyGoatFarm-zc7vu
    @HappyGoatFarm-zc7vu 9 หลายเดือนก่อน +1

    They are just fooling people I tried every lines of code but I simply can’t deploy

    • @0xdghost
      @0xdghost 9 หลายเดือนก่อน

      😂
      You must know somewhat about programming first, otherwise it'll happen

    • @gamingprofessorofficial
      @gamingprofessorofficial 7 หลายเดือนก่อน

      I deylop the same code it's work for me, you need to, use the same version of npm, openzeppeline, and hardhat too the it will work, other vise you can't able to deploy

    • @aggagg2172
      @aggagg2172 7 หลายเดือนก่อน

      @@gamingprofessorofficial How to use the same version can you please tell me?

    • @VVAIBHAVTIWARI
      @VVAIBHAVTIWARI 5 หลายเดือนก่อน

      @@aggagg2172 please use the solidty, version as the same the used in this video, in contract.sol pragma solidity ^0.8.17; and in hardhat,config insde modue export solidity: "0.8.17", and use the node ver 8.1 and openzappine ver @openzeppelin/contracts": "4.0" i have test it on node version 8.1
      please add this contract address (sepolia network) in your wallet and send me your wallet address for testing token contract address: 0xbcb1c99e78c91312b793580b7Cfd53844D360338

    • @VVAIBHAVTIWARI
      @VVAIBHAVTIWARI 5 หลายเดือนก่อน

      @@aggagg2172 first you install node version 8.1 (i have tested on it its work finr for me) after that install the specific version of solidty asoer the video show that 8.17 and openzap 4.0 this

  • @iam1.
    @iam1. ปีที่แล้ว

    do all those extras you say at the end of the video and in case you already made them at the time of writing , thank you and rest assure i will watch them

  • @BAIBULATS
    @BAIBULATS 10 หลายเดือนก่อน

    hy you can make for me ? i will pay

  • @UCHIHA587
    @UCHIHA587 ปีที่แล้ว

    successfully create i send my coin for your address thanks for the great video .... and

  • @Elizabethomo
    @Elizabethomo 2 หลายเดือนก่อน

    😊 awesome video, explanation on point

  • @kirazami2282
    @kirazami2282 ปีที่แล้ว

    Hi Rinkeby test network has been deprecated, any solutions ? Thanks

  • @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.

  • @TreelandPlantation-oy5lc
    @TreelandPlantation-oy5lc ปีที่แล้ว

    when im in visual studio and type npm init it gives an error and says npm term is not recognized as the name cmdlet and check the name and etc

    • @jeffman97
      @jeffman97 ปีที่แล้ว

      m.th-cam.com/video/eauREi0vwB0/w-d-xo.html&pp=ygUNbm9kZWpzIHZzY29kZQ%3D%3D

    • @BlockExplorerMedia
      @BlockExplorerMedia  ปีที่แล้ว

      Check to make sure you have NodeJS installed on your machine first - that's what will give you npm. nodejs.org/en/download

  • @armagosa2
    @armagosa2 ปีที่แล้ว +1

    Awesome Video, can you do one similar with a tax function opposed to a burn function?

  • @HarbingerOfDank
    @HarbingerOfDank ปีที่แล้ว

    Imagine the post office uses tokens/nfts to ship letters and such. It would include a built in tracking system. The nft could represent the Stamp and include to:/from: information.
    Or nfts that represent land in real world. Owners of the nft land could be incentivized by rental income, land development, etc.
    Or small business nft that would be backed by material or products. In lieu of rasing capital and giving away % in your company. Take a nft loan by backing your purchase orders with nfts designed to return a certain %.

  • @jamesluiz3889
    @jamesluiz3889 ปีที่แล้ว

    I think I can't transfer the tokens to another address, the transaction keeps failing

  • @AmericanJeeperMW
    @AmericanJeeperMW 6 หลายเดือนก่อน

    How can I get in touch with you sir ? I cant find a messenger or email

  • @phredbitcoin
    @phredbitcoin ปีที่แล้ว

    Awesone video..If possible I would like to interact with you, I need some kind advise on create my token

    • @BlockExplorerMedia
      @BlockExplorerMedia  ปีที่แล้ว

      Thanks my friend. Happy to try and help as time allows, feel free to contact via email.

  • @donaldschell1696
    @donaldschell1696 ปีที่แล้ว

    npm init gives me an error...
    npm ; the term 'npm' is not recognized as the cmdlet, function, script file, or operable program....

  • @PulokPandit
    @PulokPandit ปีที่แล้ว

    what will be the procedure to deploy it to main net and does it gonna cost me something ??

  • @talhagerginn7672
    @talhagerginn7672 ปีที่แล้ว

    Error: insufficient funds for intrinsic transaction cost help please

  • @indiuma
    @indiuma ปีที่แล้ว

    still get solidity version error tho it matches to hardhat file doesnt compile

  • @24PetrocoinLLC
    @24PetrocoinLLC 8 หลายเดือนก่อน

    can you include initial token pricing in the contract before deployment?

  • @Akhbash
    @Akhbash 2 ปีที่แล้ว +4

    It does display the mining reward in rinkeby etherscan, but it is inside the same transaction. Look at 1:10:00, there are two token transfers ;D

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว

      Oh good catch! I wonder why the transaction is bundled like that. In the past the reward was always a separate transaction. Thanks for letting me know!

    • @beamzbysilva
      @beamzbysilva 2 ปีที่แล้ว

      Please can you clarify, why do we need the mining reward? Just a little confused about the need for that part of the code.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +3

      I want to be clear that the mining reward part is totally optional! It is just an example of one way of generating new token supply into circulation. There are many different options here and you could also not have any supply-generating mechanism and mint all tokens up front. It's really up to the developer. Hope that helps!

  • @MichaelWongManTak
    @MichaelWongManTak ปีที่แล้ว

    Sir, thanks for your video. Is it possible to get support in real time guidance in setting up our token. ??

  • @digitalthoughts334
    @digitalthoughts334 ปีที่แล้ว +1

    Thanks for uploading this tutorial. Amazing work. I am facing issues at 36:56 and getting this error: TypeError: Derived contract must override function "_mint". Two or more base classes define function with same name and parameter types. Could you please suggest what could be causing these issues? I don't see you have any issues.

    • @drawcontent3664
      @drawcontent3664 ปีที่แล้ว

      This error occurs when a contract is derived from two or more base contracts that have a function with the same name and input parameter types. In your case, it seems that you have defined the _mint function in your derived contract and also inherited it from one or more base contracts.
      To resolve this error, you need to override the _mint function in your derived contract to ensure that it has the same function signature as the base contract(s). This means that the function name, input parameter types, and return type must be exactly the same.
      Here's an example of how you can override the _mint function in your derived contract:
      javascript
      Copy code
      function _mint(address account, uint256 amount) public onlyOwner {
      require(account != address(0), "ERC20: mint to the zero address");
      _totalSupply += amount;
      _balances[account] += amount;
      emit Transfer(address(0), account, amount);
      }
      This adds the onlyOwner modifier to restrict minting to the contract owner, but you can modify it as per your requirements. Just make sure that the function signature is the same as the base contract(s) to avoid the error.

    • @kirazami2282
      @kirazami2282 ปีที่แล้ว

      Hi did you find solution ? thanks

    • @shachar991
      @shachar991 ปีที่แล้ว +1

      ​ It happens because of multiple references to the ERC20 contract (ERC20Capped & ERC20Burnable).
      If are talking about the _mint function (defined in both ERC20 and ERC20Capped contracts), you should override the function in your Token contract (add override(ERC20, ERC20Capped) to the _mint() signature - the order doesn't matter) and call super._mint().
      The code will use the ERC20Capped function since we are using super and it's "closer" in the inheritance chain (you can also just use ERC20Capped._mint() explicitly).
      Hope it helped.