How to deploy Smart Contract to Polygon/Matic Chain or any Ethereum based chain

  Рет қаралды 23,746

Shobhit (Web3 Club)

Shobhit (Web3 Club)

Күн бұрын

Пікірлер: 80
@SumeetChawla
@SumeetChawla 3 жыл бұрын
Wah! What timing. I just wrote my first contract on ETH and my next step was to deploy it on Polygon chain 😂😂 🔥🔥🔥
@SumeetChawla
@SumeetChawla 3 жыл бұрын
Quick question: Where did you configure the deploy method to deploy on matic chain? How does it know that by default it is supposed to deploy on Polygon?
@Web3_Club
@Web3_Club 3 жыл бұрын
Because metamask is connected to polygon, so it sends transaction to polygon
@SumeetChawla
@SumeetChawla 3 жыл бұрын
@@Web3_Club ah! D'uh 🤦🏻‍♂️ That was simple. 😂
@kurtpluto7201
@kurtpluto7201 3 жыл бұрын
hey bro, did you figure out how to transplant eth smart contract to ploygon?
@SumeetChawla
@SumeetChawla 3 жыл бұрын
@@kurtpluto7201 As Shobhit said above, you just choose web 3 injected in remix and deploy it to the current network you are selected in metamask. If you are using hardhat, you need to configure your hardhat config for the respective network and use it while deploying the contract
@boringdevjs
@boringdevjs Жыл бұрын
Amazing Tutorial bruh!!!! finally saw a real working example.
@mooot768
@mooot768 3 жыл бұрын
Dude seriously you’re so generous for sharing all of this, thanks. Can I ask you please to post a video about deploying ERC721 upgradable contract on polygon, thanks in advance 🙌
@pradyumncs
@pradyumncs 3 жыл бұрын
yesss is this possible
@agr_
@agr_ 3 жыл бұрын
This is extremely helpful. Thank you for creating this video! Goodbye gas fees!!!
@astronotyet
@astronotyet 3 жыл бұрын
Great explanation! Just an fyi, you don't have to initialize the int variable to 0. In solidity all state variables are assigned a default value(the default value for a bool is false. The default value for the uint or int types is 0)
@Web3_Club
@Web3_Club 3 жыл бұрын
Yes, you are right, I was just making sure 😅
@Andrembramwell
@Andrembramwell 2 жыл бұрын
do you know how to connect to local host 800 on windows 10?
@SuperSaiyanT
@SuperSaiyanT 3 жыл бұрын
Hi Shobhit, this is a great video and so are your other ones. I'm a complete newbie to programming in general and cannot thank you enough for the content you're uploading! I am working through this video and have come across an error which says that Metamask no longer injects web3. Going through the Metamask documentation, it says that window.web3 has been replaced window.ethereum and ethereum.request. I was wondering if you can help by telling us what needs to be replaced in your coding above for it to work with the latest changes? Thanks!!
@WebDevCody
@WebDevCody 2 жыл бұрын
How does this code potentially change with the erc1559 change? Do you have to provide different arguments to your send cal? How do you estimate the gas price with this change?
@aadeshkarira87
@aadeshkarira87 2 жыл бұрын
Bohot sahi banda h
@KevinMaarek
@KevinMaarek 2 жыл бұрын
Cool video. Buy man you live in the jungle or something ? Those bird noises 😅
@armstrongsteve2089
@armstrongsteve2089 2 жыл бұрын
please how will i open sublime text on remix widows 10 i really don't know how you did it
@sam_making_games
@sam_making_games 2 жыл бұрын
Could you please create a repo on Git and paste the link in the description? Saves time for the peeps just looking to get the pre-written code.
@rehanbabu1456
@rehanbabu1456 Жыл бұрын
I want to deploy a smart contract that intract with dai coin is there any changes on the solididy code please help
@rehanbabu1456
@rehanbabu1456 Жыл бұрын
Hello sir I have a smart contract deploy in polygon scan I want to run this contract with usdt but something difficult I faced please guide me about this.
@danis1840
@danis1840 2 жыл бұрын
I try to do a polygon arbitrage trading bot in javascript, that can trade on uniswap, sushiswap, quickswap and so on. Do I need a smart contract? If I want to add a flashloan, does it change anything? Thanks!
@SahilRajput03
@SahilRajput03 2 жыл бұрын
I love you man for this tutorial!! You are such an amazing guy!! If you weren't there I would have been noob for a lot longer time and now I feel so good!! Thanks a lot man!! 🥰 ❣ 💓 ❥ 💑 💜
@uioskhairos
@uioskhairos Жыл бұрын
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Contract') i'm getting this error need help been trying to find solution on stackoverflow but nothing works
@trianayala
@trianayala 2 жыл бұрын
Hey is it possible to know when someone inject some balance on an specific contract?
@ewokz13
@ewokz13 Жыл бұрын
how to set gas fee please that is the only one problem i have
@surajit647
@surajit647 2 жыл бұрын
Hi buddy, did you wrote "cd counter" in command prompt?
@vijayrefkin5249
@vijayrefkin5249 2 жыл бұрын
Bro contract is okay but how to Deploy 10 k images onto polygon using the Contract by setting base price. please Help
@Web3_Club
@Web3_Club 2 жыл бұрын
Check my videos on erc721
@KolsonO
@KolsonO 2 жыл бұрын
while trying to deploy meta mask transaction a error popped up "Uncaught ReferenceError: deploy is not defined at :1:1"
@Web3_Club
@Web3_Club 2 жыл бұрын
You haven't written the deploy function
@richard-chiu
@richard-chiu 2 жыл бұрын
Is there a smart contract for polygon 1150 eth on opensea where we can create for ppl to claim their own tokens ?
@TheDoktorot
@TheDoktorot 2 жыл бұрын
What is the difference in code deploying to polygon vs ethereum ? What is the difference in writing contracts for polygon vs ethereum?
@Web3_Club
@Web3_Club 2 жыл бұрын
There is none
@Oneofonebrand
@Oneofonebrand 3 жыл бұрын
Running into an “Uncaught Reference Error: Web3 is not defined at :1:1 error when trying to input “Web3 into the console any idea why this may be? I’ve followed your steps exactly yet keep getting an error.
@Web3_Club
@Web3_Club 3 жыл бұрын
Web3 library URL might have changed, refer to their documentation.
@nifeolujobi6968
@nifeolujobi6968 2 жыл бұрын
God bless you for this
@abhishekgadekar2939
@abhishekgadekar2939 2 жыл бұрын
How are you opening console in the localhost server? Anyone?
@vijayrefkin5249
@vijayrefkin5249 2 жыл бұрын
Hi bro but where to upload the nfts file 🙄bro I have 10 k images to ulpoad using polygon matic
@Andrembramwell
@Andrembramwell 2 жыл бұрын
do you know how to connect to local host 800 on windows 10?
@RA-hb9jw
@RA-hb9jw 3 жыл бұрын
how people buy your token after you deploy it?, I believe uniswap dosn't accept matic network
@Web3_Club
@Web3_Club 3 жыл бұрын
There are other exchanges on matic network, like quickswap, sushiswap, etc.
@elblogdejoelrizos
@elblogdejoelrizos 3 жыл бұрын
Hi, thanks for the tutorial, but I do not understand something... What I see is that you are deploying under Ethereum... so what Polygon is??? I mean, you are following the same steps for deploy to Ethereum, so I do not understand the difference with deploying over Polygon.
@Web3_Club
@Web3_Club 3 жыл бұрын
The network that Metamask is connected to, that's the network where we deploy our code. Polygon and Ethereum have same virtual machine (EVM) so same code works on them
@elblogdejoelrizos
@elblogdejoelrizos 3 жыл бұрын
@@Web3_Club aham ok. Deploy or transactions over Polygon are free?
@Web3_Club
@Web3_Club 3 жыл бұрын
@@elblogdejoelrizos Of course not. You have to pay gas on polygon, which is cheaper but not free
@elblogdejoelrizos
@elblogdejoelrizos 3 жыл бұрын
@@Web3_Club OK thanks!
@elblogdejoelrizos
@elblogdejoelrizos 3 жыл бұрын
@@Web3_Club Do you know any ethereum blockchain platform compatible with free gas for deployment and transactions?
@giampierocoronella2699
@giampierocoronella2699 2 жыл бұрын
Hi, can you help me? I deployed a smart contract to Polygon chain for my NFT collection, I used remix.ethereum. Now the contract is verified and it works well but I want to change the mint price. How can I do it, can you help me? If I change the price only on the Minting Dapp and mint an NFT with a different price of the smart contract it will fail. I don't know how to modify :(
@Web3_Club
@Web3_Club 2 жыл бұрын
Did you add a method to change price?
@SagarGopale9989
@SagarGopale9989 3 жыл бұрын
First of all great tutorial. I have a query though. How can you automate acquiring the abi and bytecode process? I mean copying and pasting is fine in tutorial but cant I get it through code?
@Web3_Club
@Web3_Club 3 жыл бұрын
Checkout truffle, it provides tools to do this via cli
@bitcoinroc3020
@bitcoinroc3020 3 жыл бұрын
Hi, how much does it cost to deploy 10000 nfts on polygon ?
@fumsek
@fumsek 2 жыл бұрын
Hi shobbit , i have a message error when i try to deploy(abi, bytecode) : "Uncaught ReferenceError: account is not defined ; at deploy ; at async :1:1 ". Can you help me ? Thank for the video and your respons you help me a lot !
@Web3_Club
@Web3_Club 2 жыл бұрын
You don't have any value in account variable
@fumsek
@fumsek 2 жыл бұрын
@@Web3_Club Okay thank you, but how can i add value to the account variable ? Sorry for all this question but i’m really want to learn. Thank you for your time.
@Abhi-mv3yh
@Abhi-mv3yh 3 жыл бұрын
LOVE YOUR CHANNEL! Hey, can you please share if there is any way to purchase matic or any crypto using Fiat, outside of exchanges like WazirX or Binance? Transak has temporarily banned INR. Thanks in advance!
@kingbandz5390
@kingbandz5390 2 жыл бұрын
Do you have a email so people can get in touch with you to be able to develop smart contracts polygon Network
@Web3_Club
@Web3_Club 2 жыл бұрын
It's there in the about section of channel
@MrMarcoone23
@MrMarcoone23 3 жыл бұрын
Thanks a lot for this video. I managed to write my first working NFT minting dapp on Rinkeby and you made things way easier to understand. I set the minting price to 0.01 ether but I want it to be available only on Polygon to have it 100% live and save on gas fees, so what do I need to do to charge users WETH instead of ETH? Is this process handled automatically when the smart contract is deployed to poligon?
@Web3_Club
@Web3_Club 3 жыл бұрын
ETH is actually the native token of chain, so on polygon, accepting ETH means you're minting with MATIC
@MrMarcoone23
@MrMarcoone23 3 жыл бұрын
@@Web3_Club Amazing, thanks a lot!
@aravindswarajkumar6145
@aravindswarajkumar6145 2 жыл бұрын
Hey brother, can you help me launch my NFT project ?
@vijayrefkin5249
@vijayrefkin5249 2 жыл бұрын
Hi Bro we want to Know how to deploy 10k or 20 k images onto opensea using erc721 smart contract and also how how to set the Base price for every nft using software Please Thank you 🙏
@shyamworldtravelvlogs119
@shyamworldtravelvlogs119 2 жыл бұрын
Can you make a project... for me
@thedonmarlo
@thedonmarlo 2 жыл бұрын
really confusing i had to go back 3 videos just to figure out what you're doing in your most recent video
@pronoybhattacharya7476
@pronoybhattacharya7476 3 жыл бұрын
Weekend itni jaldi aa gaya?
@Web3_Club
@Web3_Club 3 жыл бұрын
Missed uploading
@frogninja1786
@frogninja1786 2 жыл бұрын
This is great.. new follower .. can you help me about this project
@jaykumar65
@jaykumar65 Жыл бұрын
wow bro like 1000
How to deploy an ERC1155 smart contract
30:36
HashLips Academy
Рет қаралды 35 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 30 МЛН
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 11 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Каха и лужа  #непосредственнокаха
00:15
How Much Does It Cost To Deploy an NFT Smart Contract?
10:13
How To Write a Solidity Smart Contract! - Hello World Pt 1
41:53
How to Create an NFT Minting Smart Contract (Ethereum)
15:02
Reece Hunter
Рет қаралды 33 М.
Build a WEB3 app to mint unlimited NFTs… But should you?
23:25
How to clone any smart contract
37:28
HashLips Academy
Рет қаралды 85 М.
Lazy Mint NFT Tutorial | Smart contract and code
22:25
Shobhit (Web3 Club)
Рет қаралды 8 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 30 МЛН