Deploy a Simple NFT in Solidity | [See Description\

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • A Glorious Guide to NFTs (ERC721) - deploying a simple NFT
    UPDATES:
    🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺
    ValueError: The private key must be exactly 32 bytes long, instead of 0 bytes.
    If you get this error, add a "0x" to the start of your metamask private key
    For newer versions of solidity, import and inherit this: github.com/Ope...
    Chainlink VRF has now updated, for the Chainlink section, either skip it or use Chainlink VRFv2
    🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺
    What is an NFT (Non-Fungible Token)? What is the ERC-721 standard? What is this digital art stuff? We are going to use Openzepplin contracts to build a simple NFT that mom can be proud of :)
    Be sure to check out the tutorials!!!
    Medium Post: betterprogramm...
    Dungeons and Dragons NFT Blog: blog.chain.lin...
    Code for this tutorial: github.com/Pat...
    NFT video: • A Glorious Guide to NF...
    For beginners: docs.chain.lin...
    ✅✅ Donate ✅✅
    ETH Wallet address: 0x9680201d9c93d65a3603d2088d125e955c73BD65
    😸😸Join the community!😸😸
    Chainlink developers discord: / discord
    Alpha Chain discord: / discord
    Twitter: / alphachainio
    Twitter (me): / patrickalphac
    Medium: / patrick.collins_58673
    Twitch Stream Uploads: / @patrickalphac-alt
    Twitch: / patrickalphac
    🖥🖥🖥Chainlink Hackathon Registration🖥🖥🖥
    chain.link/hac...
    Sign up here!
    ☝️☝️☝️☝️☝️
    All thoughts and opinions are my own.

КОМЕНТАРІ • 297

  • @halmaimanassara4199
    @halmaimanassara4199 2 роки тому +5

    I’ve been studying Solidity for for almost 2 years now and this came to my recommend, this is a great video breaking down code for creating Nfts.. well done

  • @berzzzini
    @berzzzini 3 роки тому +23

    dude your content is a gem, informative & fun af

  • @alphaprimer6485
    @alphaprimer6485 3 роки тому +11

    This is exactly what I was looking for, amazing job explaining this. Please keep making videos like this!!

  • @peakMomentum1
    @peakMomentum1 3 роки тому +7

    You can’t fool us with just a wig Mr. Bezos

  • @lvidalio
    @lvidalio 3 роки тому +1

    New into this world. I'm very gratefull for finding this vid! Thaanks!

  • @shivanishimpi2988
    @shivanishimpi2988 3 роки тому +2

    This series is absolute GOLD!

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @melkenhoning158
    @melkenhoning158 3 роки тому +2

    This channel is on it's way to blow up lol glad I got here early

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @brunobbll
    @brunobbll 3 роки тому +4

    You're funny and the content is awesome, fun way to learn!! Keep on the awesome work, and thank you!

  • @soothingsoundsradio551
    @soothingsoundsradio551 3 роки тому +2

    I really appreciate this video and how I can follow along without confusion. Thank you!

    • @zes3813
      @zes3813 3 роки тому

      wrr, no such thing as kidding or etc

  • @Zipstone
    @Zipstone 3 роки тому +2

    This is an excellent video, so clearly explained & fun. Glad I found your channel!

  • @Milark
    @Milark 2 роки тому

    Super underrated channel. Thanks!

  • @lucasminchillo2262
    @lucasminchillo2262 2 роки тому +1

    You are awesome ! My regards from Brazil.

  • @zychris1750
    @zychris1750 3 роки тому +3

    Amazing! Do you cover other resource in building smart contracts like uniswap, defi ideas?

  • @optymystyc
    @optymystyc 2 роки тому +1

    I wish I could get a simple Solana version of this tutorial! This is really awesome!

  • @tippififestarr6519
    @tippififestarr6519 3 роки тому +1

    Hey buddy, reviewing NFTs now for my next innovative project. Love your humor and simplicity, sending quick feedback to your discord

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Thank you for the feedback as always!

    • @tippififestarr6519
      @tippififestarr6519 3 роки тому

      @@PatrickAlphaC Comment & Like my most recent and subscribe my channel to do your part in the decentralized music production process ;)

  • @0GRANATE0
    @0GRANATE0 3 роки тому +2

    Hey Patrick! Thank you for the Video! (I am starting to watch).
    When you deploy your NFT contract on ETH, can you list that NFT token (or whole contract??) on opensea or rarible? And is than the auction mechanism already given by rarible or do we need to implement the actual method on our solidity contract? THANK you soo much for your response!

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      If you watch my longer video on this channel, all answers will be revealed!

    • @0GRANATE0
      @0GRANATE0 3 роки тому +1

      @@PatrickAlphaC ok I will say it... I love you!

  • @rotopercutorash
    @rotopercutorash 3 роки тому +3

    very useful! love your content mate! keep it up!
    Would be keen to know how to add a limit for the amount of NFT's that can be minted.
    Say the collection will initaially have 10 NFT's and each can only be minted 10 times (100 NFT's in total)
    Is there a way to wrap the above around your code?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Sure! Just add something like “if tokenCounter > 9 then revert”

    • @rotopercutorash
      @rotopercutorash 3 роки тому +1

      @@PatrickAlphaC thank you for this, it really helps.
      Also, if i'd like to create 10 NFT's as JPG's (therefore using the simplecontract) am i right to think that i need to create 10 x createCollectible functions (1 for each type)?
      I actually need to get down to it to see if i understood it right, just want to know if i'm heading the right direction :)

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      @@rotopercutorash nope! 1 createCollectible function works, just pass in a different tokenURI (pointing to a different image) each time.

    • @marcinooooo
      @marcinooooo 3 роки тому

      Hey @rotopercutorash how did the creation of your code go? Wold yo mind sharing it? I also want to create something like you

  • @tylersim8856
    @tylersim8856 2 роки тому

    Amazing Video! Is the best writing platform to download Brownie or is there another?

  • @Jxmiecole
    @Jxmiecole 3 роки тому +6

    great video thanks bro. don't know if anyone has ever told you you look like Jeff Bezos aha

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @hideoutgeneva1227
    @hideoutgeneva1227 3 роки тому +2

    I want firstly congrats about what you've done, in one week that should be a mess to additionate all these information... I've just a question, how can I set that I don't want any double, like with all my design associated, make the algorithm only do unique one and donc make double like two with the same attributes ? Thank you in advance and keep it up with your video about crypto that's so interesting that's a big Blue Thunbs like always

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Appreciate the kind words. To do that depends contract to contract, but for this example you’d just never have a tokenURI set twice, and not allow the same tokeURI across pictures

  • @cobrakai9595
    @cobrakai9595 3 роки тому +2

    Great Content! THANKS

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @tyranitartrading1561
    @tyranitartrading1561 2 роки тому +1

    wow pat your a gangster thanks dude!

  • @1990Farz
    @1990Farz 3 роки тому +2

    Hi Alpha ! Thanks for the content ! Quick question ! after creating the token and deploying it to the blockchain. How can I then programatically sell the NFT without any intermediary exchange. Thanks in advance

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +2

      Without an exchange, you’d have to find a seller and do it the old fashioned way. You’ll have to use some sort of smart contract that can programmatically do the exchange. Otherwise, you could make the exchange on something like opensea

    • @1990Farz
      @1990Farz 3 роки тому

      @@PatrickAlphaC Thanks for your reply. Are you open to contractural work?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      @@1990Farz nope, I’m flattered though :)

  • @ShivamT
    @ShivamT 3 роки тому +1

    at 0:48 what application are you using? I downloaded brownie via command but I dont know what application your using to display the framework

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Download visual studio code code.visualstudio.com/

    • @ShivamT
      @ShivamT 3 роки тому +1

      @@PatrickAlphaC awesome. Thanks for your quick response, appreciate it :)

  • @ArtificiallyAmusing
    @ArtificiallyAmusing 3 роки тому +2

    Thank You Jeff Bezos with hair!

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      CEO ENTREPRENEUR, BORN IN 1964

    • @ArtificiallyAmusing
      @ArtificiallyAmusing 3 роки тому +1

      @@PatrickAlphaC haha seriously though, thank you. Your content is awesome

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@ArtificiallyAmusing much obliged

  • @typecro4114
    @typecro4114 3 роки тому +1

    Lets do this....Im ready to make
    nft history

  • @MikeyDavis
    @MikeyDavis 2 роки тому +1

    Try to unsee the fact that Patrick is Jeff Bezo's with hair.

  • @jimcua6589
    @jimcua6589 3 роки тому +1

    Bro I don't know anything about coding, if I do exactly what you do will the be good or should I have experience with coding first?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +2

      Do exactly what I do here: ua-cam.com/video/M576WGiDBdQ/v-deo.html

    • @jimcua6589
      @jimcua6589 3 роки тому +1

      @@PatrickAlphaC thanks bro

  • @Dharqx
    @Dharqx 3 роки тому +1

    great vid, sweet content

  • @gene8945
    @gene8945 3 роки тому +2

    Great video! Love it. One caveat, wish you used JS, truffle. Could you refer to that tech stack for nft deployment and maybe minting?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +2

      I got you: ua-cam.com/video/EzZEx0lumr0/v-deo.html

    • @gene8945
      @gene8945 3 роки тому

      @@PatrickAlphaC Thank you!

  • @WILPOLLOCK
    @WILPOLLOCK 2 роки тому

    Hi Patrick! Quick question: any guidance on how to make two small changes: add "NFT_Max : 500" and "price = 0.0025 ether" ? The rest is boilerplate I just don't want to have to add the price to ever listing on OpenSea or wherever once I launch. Maybe I'm wrong about the price thing, am i?
    Thank you so much for all you for the community, Bro!! Cheers, mate. Wil

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому +1

      Under your “mint” function do a “require” statement for “msg.value” to be the amount you want. Then, do another require for tokenCounter to always be below 500

  • @ozyphus439
    @ozyphus439 2 роки тому +1

    Which IDE is this and is there a video on how to prepare this IDE for getting started?

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому

      Visual Studio code. ua-cam.com/video/4gHx-VESMMw/v-deo.html

  • @SijoyThomas
    @SijoyThomas 2 роки тому +1

    How can I access v0.8 of chainlink brownie contracts in brownie config file

  • @dhaiwat10
    @dhaiwat10 3 роки тому +1

    Great video man

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @weektopeak
    @weektopeak 3 роки тому +2

    Patrick is the GOAT

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @theophiluschambers3628
    @theophiluschambers3628 2 роки тому +1

    mate you are more HYPE then the FUD pump groups....

  • @drakegao816
    @drakegao816 Рік тому

    I might be not familiar with the import itself. But how does the ERC721 get imported? I don't see the contract is downloaded. Thanks.

    • @PatrickAlphaC
      @PatrickAlphaC  Рік тому +1

      Brownie goes out to GitHub and download it

  • @tyshantz8675
    @tyshantz8675 3 роки тому +3

    Thanks bruh

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @THEBIGGESTSCUMBAG
    @THEBIGGESTSCUMBAG 3 роки тому +1

    GOAT

  • @satchel888
    @satchel888 3 роки тому +1

    Hi, I moved to ^0.8.0 in order to use the OpenZeplin as is (without specifying the version if I were on 0.6.6)....but it meant instead of 'return' it is 'returns' but I think _setTokenURI was deprecated, but trying to figure out how to do it).....

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Import and inherit this instead and everything should be the same github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721URIStorage.sol

  • @nj99
    @nj99 3 роки тому +2

    Hi Patrick. New subscriber here great content! I see a lot of projects that have a "connect" button on their website to mint directly from their site. Do you have any tutorials or ideas on how to connect this python process with the process they are using via "connect" on websites? Thanks for your help!

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +2

      Good question! That would be a full stack demo. Nader Dabit and dapp university have some good full stack videos, mine are coming soon!

  • @YoyoBoum1
    @YoyoBoum1 3 роки тому +1

    Thank you very much%!
    Do you think I can run the same with the 0.8.7 sol version, please?
    VS code tells me it's required.

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      You should be able to! VS Code is a little touchy with solidity listing, don’t worry about it too much

  • @chateauluouxmont
    @chateauluouxmont 3 роки тому +2

    Hi, can I hire you to make an nft for me? My mmorpg character can craft items forged with my account id making it unique compared to the same item that others can buy without though without my signature.

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Sadly not, I’m pretty much at Max capacity at the moment, I’m sure someone from the chainlink community would love to help you out though!

  • @Dc4short
    @Dc4short 2 роки тому

    quick question, in the open zeppelin link, which one do I copy and paste

  • @everydayonlineshopping3074
    @everydayonlineshopping3074 3 роки тому +1

    He is amazing..

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @pictzone
    @pictzone 3 роки тому +2

    This guy looks like Jeff Bezos with hair

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @muatafaalahmid7467
    @muatafaalahmid7467 3 роки тому +1

    i just finishd a solidity crash course, I'm trying to make some NFTs, for deploying NFT on blockchain do I need ether in my account ?

  • @ducbinhvu9567
    @ducbinhvu9567 3 роки тому

    Hi Patrick, thanks for your video. I have one quest: if function createCollectible is called multi times at the same time, so these nft have same itemId ?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Nope! We increase the tokencounter each time. I might have forgot to add that in the video (oops), but in the repository of this video it's there!

  • @ShivamT
    @ShivamT 3 роки тому +1

    'If you get this error, add a "0x" to the start of your metamask private key'
    where do i find my metamask private key?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key

  • @habiblichaa3978
    @habiblichaa3978 3 роки тому

    Looking for someone who can create a NFT Staking system on Polygon. Any recommendations?

  • @user-ut7xi2sg7t
    @user-ut7xi2sg7t 3 роки тому +1

    Hi Patrick i complete you video ans success and have question can i mint on mainnet (real opensea)

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      You can! Just change the network flag to --network mainnet

  • @echadesi
    @echadesi 3 роки тому

    Say if someone mints from your contract paying a fee, do you have an example how you'd split the amount between multiple owners of the contract? I'm assuming the owner object only represents the one owner that deployed the contract so I'm curious how dev teams split between themselves via contract.

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +2

      I don’t have an example, but you’d add a “withdrawable” amount for each address owner that tracks how much they can withdraw

    • @echadesi
      @echadesi 3 роки тому +1

      @@PatrickAlphaC doesn't that involve hard coding all these addresses in the contract?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      @@echadesi you could do it that way. But you could also have a “addowner” function that does it for you

    • @karthikv3961
      @karthikv3961 3 роки тому +1

      @@PatrickAlphaC That sounds more elegant. Except I'll pay gas each time I call anything through the interface.

  • @st33pd33p
    @st33pd33p 2 роки тому

    Thanks for the tutorial! one question, when I deploy I get the error:
    File "

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому

      Can you make a stackoverflow question on this?

  • @xtremefitteam6810
    @xtremefitteam6810 3 роки тому

    What's Blockchain platform do you recommend to develop a nft marketplace on?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Whichever one you want really. ETH will have a ton of longevity, but If you’re looking for cheap fees try polygon.

    • @xtremefitteam6810
      @xtremefitteam6810 3 роки тому +2

      @@PatrickAlphaC thank you

  • @benjaminsanchezlopez3266
    @benjaminsanchezlopez3266 3 роки тому

    Hi, i have a problem:
    When i run "brownie run scripts/simple_collectible/deploy_simple"
    This error shows up: "brownie" is not recognized as a command

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      I responded to your other comment with this.

  • @1Revolucion1
    @1Revolucion1 3 роки тому +1

    Hello, good video, how can I sell them with metamask on my page after creating them?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Like on your own website? You'd have to code that functionality into a front end. Basically have a function called "buy" where they can send you value and then you transfer them the NFT

  • @bitcoinroc3020
    @bitcoinroc3020 2 роки тому

    Hi, how much does it cost to deploy 10000 nfts on polygon ?

  • @relaxationworld2249
    @relaxationworld2249 2 роки тому +1

    But where are you coding,
    I mean best app info please

  • @sangamchhetri2998
    @sangamchhetri2998 3 роки тому +1

    Jefff bezos.....is that you?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      I need someone to do a side by side, cuz I don’t see it

  • @sk-sm5zg
    @sk-sm5zg 3 роки тому +2

    Please remake this video on how to deploy with remix editor

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      It’s way harder in remix. I highly recommend learning hardhat, truffle, or brownie. This is going to make your life 50x better I promise

    • @sk-sm5zg
      @sk-sm5zg 3 роки тому +1

      @@PatrickAlphaC ok I will learn it, we want more tuts please ...love your vids

  • @akath22
    @akath22 2 роки тому

    I don't see the link to the previous video in the description

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому +1

      ua-cam.com/video/9yuHz6g_P50/v-deo.html
      Updated!

  • @zeith1000
    @zeith1000 2 роки тому +1

    "Its so cuuuuuute!" - hahhahahhahhahahahahahahahaja

  • @oommdtube
    @oommdtube Рік тому

    Nice , ok ill try it , will this work if item is .mp3 ?

    • @PatrickAlphaC
      @PatrickAlphaC  Рік тому

      Yes! But it’s a little tricker. Aka on Peeranha or ETH stack exchange!

  • @Shmoji
    @Shmoji 3 роки тому

    Can you see the Simple NFT that is deployed or only the advanced one? I guess by see, I mean can you see it on OpenSea or anything?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      You have to add the tokenURI for the simple one. I’ll show how to do that in the next video

  • @JuanGrzn
    @JuanGrzn 2 роки тому

    What is the program that you used to write the code?

  • @gekyangng3944
    @gekyangng3944 3 роки тому

    hi, at which part of the code did you upload the picture of the dog?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Hi! And what do you mean? I uploaded the dog to IPFS and pulled the image URL from there

    • @gekyangng3944
      @gekyangng3944 3 роки тому +1

      @@PatrickAlphaC yea, i messed up during that part, thanks alot, will try again and see how it goes!

  • @janephillip574
    @janephillip574 3 роки тому +1

    Hi guys Derek more plates more dates

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Woah I like this better than the Jeff bezos comments I get

  • @dayzinn
    @dayzinn Рік тому

    Quick question do opensea automatic do this?

  • @en5490
    @en5490 2 роки тому

    where does the _setTokenURI function come from?

  • @pudsey7527
    @pudsey7527 2 роки тому

    Hey patrick how do use ifps and how do you install that coding app you use.

  • @Zilverbacks
    @Zilverbacks 3 роки тому

    please can you do a video on dapps for THETA, considering its EVM compatible with Solidity

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      ill try!

    • @Zilverbacks
      @Zilverbacks 3 роки тому

      @@PatrickAlphaC Similar to the BinanceSmartChain and Matic/Polygon Ecosystem growth Theta is set to explode and itd be great if you could facilitate a part of it

  • @Jason13Official
    @Jason13Official 2 роки тому +1

    You look like Jeff Bezos, no cap

  • @romulocarrillo7665
    @romulocarrillo7665 2 роки тому

    Hi Patrick, i recived a nft from bakeryswap nft, but i don't know how yo see it o how to send, i just can see it on bscscan a it said si bep 721, but a i can see it un My metamask, can You help me plis? :(

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому

      You can call the tokenURI on the contract… although I’m not familiar with bakeryswap

  • @thattrippydudeonyoutube7273
    @thattrippydudeonyoutube7273 2 роки тому +1

    Wouldn’t it be easier to just do this on Remix? So you don’t have to add all those packages etc.? Thanks. 👍

  • @franpv4019
    @franpv4019 3 роки тому

    Hi, i am getting this error!!
    ValueError: The private key must be exactly 32 bytes long, instead of 0 bytes.
    Terminating local RPC client...
    What can i do to solve it?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Your PRIVATE_KEY is messed up. Could you make this a question on stack exchange ETH, tag it brownie, and i'll answer it there? ethereum.stackexchange.com/

    • @franpv4019
      @franpv4019 3 роки тому

      @@PatrickAlphaC Of course, here is the link. ethereum.stackexchange.com/questions/104152/your-private-key-is-messed-up

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@franpv4019 Could you try what I proposed here and "check mark" it if it solves your problem? ethereum.stackexchange.com/a/104178/57451

  • @pawezieba8310
    @pawezieba8310 3 роки тому

    After i added 0x infront of private key i got an error: "ValueError: The private key must be exactly 32 bytes long, instead of 34 bytes."

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Odd.... maybe there are some spaces or something in there?

  • @sk-sm5zg
    @sk-sm5zg 3 роки тому +2

    I like your humour 😂

    • @patrickcollins479
      @patrickcollins479 3 роки тому

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P..

  • @yrraadi
    @yrraadi 3 роки тому +1

    ValueError: The private key must be exactly 32 bytes long, instead of 0 bytes.
    Hi i'm getting this error. How do I fix this??
    thanks:)

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Add a 0x to the start, thanks I’ll add in the description

    • @yrraadi
      @yrraadi 3 роки тому

      @@PatrickAlphaC thanks a lot! I also ran into the error down below-
      ValueError: Unable to expand environment variable in host setting: 'rinkeby.infura.io/v3/$WEB3_INFURA_PROJECT_ID'. when i type my infura url on google as well i get a 404 page not found error.
      Not sure what to do here. Pls advice, thanks!

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@yrraadi your `WEB3_INFURA_PROJECT_ID` isn’t set. Make sure you set it in your `.env` and run `source .env`

    • @yrraadi
      @yrraadi 3 роки тому

      @@PatrickAlphaC I did set it, but no luck

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@yrraadi it’s most likely the issue is that it’s not set right for some reason. Could you run `printenv` and see if you can find the environment variable?

  • @radripper9398
    @radripper9398 3 роки тому

    Anyway we could mint these directly on open sea without having to pay for gas fees?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      No, to deploy to a chain you need to spend fees

    • @radripper9398
      @radripper9398 3 роки тому +1

      ​@@PatrickAlphaC So how does opensea do it with their collections? Their collection only requires a one-time gas fee and the rest of the mints are free. Is it because their collection is deployed on the ERC1155 chain? If so, is there a way we could deploy multiple NFT's on an 1155 chain and only paying a one-time fee? What is the best way to avoid high gas fees if I was to mint multiple NFTs at once? Maybe Integrate on the matic testnet?
      Lastly, would it be possible to change the metadata on the NFTs that we've sold if the item was minted manually through opensea's website and not deployed by ourselves?
      Please let me know and thank you for your amazing videos!

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      @@radripper9398 Erc1155 isn’t a chain. It’s a token standard. You have to pay fees everytime you mint a new unique NFT. The 1155 standard allows you to mint a thousand of the exact same token, not unique tokens, that’s the difference

  • @Jizzed91
    @Jizzed91 3 роки тому

    there is no _setTokenURI function in openzeppelin ?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      In the v4 versions, they have a different setup. You can still use the v3 contracts though!

    • @Jizzed91
      @Jizzed91 3 роки тому +1

      @@PatrickAlphaC np i wrote the most stuff myself now just was wondering and searching

  • @basicallyeveryone
    @basicallyeveryone 2 роки тому

    nice tutorial
    btw you look like the left half of jeff bezos somehow

  • @QuertyCube
    @QuertyCube 2 роки тому

    How can i run brownie without "brownie run script/create_collectible.py" , just i call "python create_collectible.py "?

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому

      You’d have to do a lot of manual work for that, since brownie isn’t made to do that

  • @paulweinhofer6110
    @paulweinhofer6110 3 роки тому

    I'm a complete noob who really wants to get in this world. I didn't quite understand the part about remapping and how to install everything on my pc. Do you know of anyone else who makes tutorials that I should watch before I start watching yours so I can learn the basics?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      ua-cam.com/video/QfFO22lwSw4/v-deo.html

  • @cryptocomix
    @cryptocomix 3 роки тому

    Dude you kinda look like Jeff bezos

  • @olioreos7194
    @olioreos7194 2 роки тому

    Good vid bro

  • @loekTheDreamer
    @loekTheDreamer 2 роки тому

    was this a tutorial?

  • @buttter
    @buttter 3 роки тому

    Anyone know how to make the program highlight certain solidity phrases and offer relevant solidity suggestions like his is? Is it extensions or program settings? Both?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      I just have solidity as an extension. Have you tried that?

  • @diegomartinez3009
    @diegomartinez3009 3 роки тому

    how do you add the packages to visual studio on mac ??

  • @kozue___777
    @kozue___777 2 роки тому

    You look like Jeff!

  • @buttter
    @buttter 3 роки тому

    what extensions do u have installed in visual studio code

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      A whole bunch. Like solidity and some python ones... I’m not married to any though.

    • @buttter
      @buttter 3 роки тому

      @@PatrickAlphaC It's just that when I try to follow along in visual studio code, certain functions aren't changing colors or offering suggestions like yours is.

  • @basetpk
    @basetpk 2 роки тому

    Fuck yes!

  • @lukej7283
    @lukej7283 3 роки тому

    What if you wanted to have 100 unique images as separate tokens under the same token tracker ?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Every time you call "createCollectible" they will be under the same "token tracker".
      The NFT contract we deploy is known as the "factory contract", every NFT we "mint" in there will be of that collectible type.
      So yes, if you called "createCollectible" 100 times here, they would all be under the same token tracker.

    • @lukej7283
      @lukej7283 3 роки тому

      @@PatrickAlphaC how do you add a unique image to each of the NFTs we've minted?

    • @lukej7283
      @lukej7283 3 роки тому +1

      @@PatrickAlphaC excellent response, and your videos extremely helpful and well made.

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@lukej7283 This video will show you how

    • @lukej7283
      @lukej7283 3 роки тому

      @@PatrickAlphaC ah I see.
      So in that json file I noticed there was multiple ID, 0, 1, 2 etc, so you would set tokenURI to one of these and it would assign the image that's in that file linked to that ID number as a function of this contract once its deployed.
      Do you have a video on creating a tokenURI contract ?

  • @ismaeeladams3524
    @ismaeeladams3524 3 роки тому

    Where in an nft is the value of the token?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      The value of an NFT is whatever people will pay for it, like art!

    • @ismaeeladams3524
      @ismaeeladams3524 3 роки тому

      @@PatrickAlphaC so how exactly would you tokenise an asset? how would you give a token the same value as a house for example

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@ismaeeladams3524 longer story, but basically you’d use the house as collateral for the asset. You’d say “this token represents ownership of x percent of this house”, and it would have value because of the value of the house

  • @domenicobezuidenhout1587
    @domenicobezuidenhout1587 3 роки тому

    Hey Patrick,
    I get a slightly different error haha
    I get:
    The private key must be exactly 32 bytes long, instead of 42 bytes.

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Could you make this a stackoverflow question and paste the link here?

    • @jacobbarca2410
      @jacobbarca2410 2 роки тому

      I got the same error, most likely you are using the wrong key. Go to your metamask account, click on the three dots to the right and click on account details. Click "Export Private Key" and copy that key.

  • @WonderWorldEspañol
    @WonderWorldEspañol 3 роки тому

    Can you please create a Play list so it would be way more easier to figure things out in order

  • @BenOnDemand
    @BenOnDemand 3 роки тому

    What IDE is that you're using?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      Visual Studio Code. Technically not an IDE, but a text editor.

    • @BenOnDemand
      @BenOnDemand 3 роки тому +1

      @@PatrickAlphaC Thanks! I legit found right after posting this comment. Now Just trying to get the @openzeppelin reference to work. Learning a lot from your videos. Thanks for the content.

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      @@BenOnDemand for sure! Feel free to ping on questions

    • @BenOnDemand
      @BenOnDemand 3 роки тому +1

      @@PatrickAlphaC thanks! I was trying to join your discord this morning but seems like that link isn’t working. Looking forward to chatting with you.

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@BenOnDemand hmm, send a pic of the error? It’s working for me

  • @brssnj54
    @brssnj54 3 роки тому +1

    I keep getting a "command not found" error when I try to run brownie bake nft-mix in vs code. Any ideas?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Can you make an issue on the GitHub repo with the steps you took?

    • @brssnj54
      @brssnj54 3 роки тому

      @@PatrickAlphaC sure! But all I did was run pip install eth-brownie and then brownie bake nft-mix
      It says brownie isn’t a command. Maybe it’s a PATH thing? It works on my friends computers

    • @brssnj54
      @brssnj54 3 роки тому

      @@PatrickAlphaC It works when I run in a virtual environment and install there. Super weird. Going to go through the rest of the video now! Thanks!

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@brssnj54 could you try pipx instead? Try the instructions from the readme github.com/PatrickAlphaC/nft-mix

    • @brssnj54
      @brssnj54 3 роки тому

      @@PatrickAlphaC pipx didn’t work either, but it’s been fine running in a virtual environment. It’s deploying now.
      I’m pretty sure the problem is on my end, just not sure what vs code is doing

  • @MajdSukkar
    @MajdSukkar 2 роки тому

    can anyone tell me please, what is the difference between creating an NFT here from scratch and creating it using Opensea??

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому +1

      Utility.
      If you do it on opensea, it’s just an image. If you code it, you can give it unlimited customization. You can create a game like axie infinity or gods unchained. You can have true randomness and scarcity.
      Doing it like this allows you to have it be more than a jpeg, and allows it to live forever

    • @MajdSukkar
      @MajdSukkar 2 роки тому

      @@PatrickAlphaC Thank you so much, I have subscribed to see your content! just amazing man!

    • @MajdSukkar
      @MajdSukkar 2 роки тому

      @@PatrickAlphaC one more question please, are there any fees to be paid when submitting the nfts?

    • @PatrickAlphaC
      @PatrickAlphaC  2 роки тому +1

      @@MajdSukkar gas fees!

    • @MajdSukkar
      @MajdSukkar 2 роки тому

      @@PatrickAlphaC sure, but I mean like how much. Or if you have a video on that topic, it would be great

  • @ridhwanofficial7953
    @ridhwanofficial7953 3 роки тому +2

    You look like jeff bezos

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      How

    • @ridhwanofficial7953
      @ridhwanofficial7953 3 роки тому +1

      @@PatrickAlphaC If you removed your hair... You look very similar. Great content btw, I was wondering how you would set up a market place in your contracts... allowing users to auction their tokens, place bids and purchase other tokens. Saw something like this on the CryptoPunks contract but couldn’t understand all of it. Do you know more about this or a useful resource for it?

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому +1

      @@ridhwanofficial7953 sure! I do more for educational stuff and don’t have a marketplace myself. But opensea and rarible are great places to start

    • @ridhwanofficial7953
      @ridhwanofficial7953 3 роки тому

      @@PatrickAlphaC Hmm yeah I’ve had a look at them, but they want you to buy and sell on their platform, I was kind of interested in anybody having access to placing a bid on a token. Also the possibility of minting them on my website so that they can be traded elsewhere..

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@ridhwanofficial7953 if you mint an NFT even not on their platform, you can trade them on any of those platforms. They render any NFT

  • @bumenga
    @bumenga 3 роки тому

    what is this error?
    development
    File "C:\Users\Bumenga\AppData\Local\Programs\Python\Python39\lib\site-packages\eth_brownie-1.13.2-py3.9.egg\brownie\_cli
    un.py", line 49, in main
    return_value, frame = run(
    File "C:\Users\Bumenga\AppData\Local\Programs\Python\Python39\lib\site-packages\eth_brownie-1.13.2-py3.9.egg\brownie\project\scripts.py", line 96, in run
    return_value = f_locals[method_name](*args, **kwargs)
    File "", line 4, in main
    return self._contracts[i]
    IndexError: list index out of range

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      Hmm... what command did you run?

    • @bumenga
      @bumenga 3 роки тому

      ​@@PatrickAlphaC
      brownie run scripts/simple_collectible/deploy_simple.py

    • @PatrickAlphaC
      @PatrickAlphaC  3 роки тому

      @@bumenga could you check the readme for adding network information? Do you have the environment bars correct?

    • @bumenga
      @bumenga 3 роки тому +1

      @@PatrickAlphaC "advanced" works but "simple" doesn't work, I think the mistake is in this line "simple_collectible = SimpleCollectible[len(SimpleCollectible) - 1]" Thank you