PatrickAlphaC/all-on-chain-generated-nft

How much Rinkeby ETH is required to deploy to the test net?

yaizudamashii opened this issue · 6 comments

Hi Patrick, thank you very much for the tutorial video and this codebase. The video was very informative.

I tried to deploy to the Rinkeby testnet, and I got 7.5 ETH from faucet but I keep getting insufficient funds. I can only get 7.5 ETH per day, how much ETH do I generally need to deploy to Rinkeby?

Ok I figured it out, if we are using PRIVATE_KEY, we also need to uncomment accounts: [PRIVATE_KEY] in hardhat.config.js and comment accounts: { mnemonic: MNEMONIC }.

Closing.

Yes! Exactly!

I need help too and I'm facing the same error. This is the error code I'm seeing:

Error: insufficient funds for intrinsic transaction cost (error={"name":"ProviderError","code":-32000,"_isProviderError":true}, method="sendTransaction", transaction=undefined, code=INSUFFICIENT_FUNDS, version=providers/5.5.0)

These are the steps that I have done:

  • Added the following environment variables - RINKEBY_RPC_URL, PRIVATE_KEY, MAINNET_RPC_URL
  • RINKEBY_RPC_URL = https://rinkeby.infura.io/v3/7f837g....
  • PRIVATE_KEY from my Metamask = 3gdc2fdhh…
  • MAINNET_RPC_URL = https://eth-mainnet.alchemyapi.io/v2/Js7cnd9vjfk...
  • Note: I didn’t paste my private key numbers and URLs above – just wanted to show how the string of alphanumeric looked like. They were made up.
  • I’ve created both Infura and Alchemy accounts. My Metamask account has 18.95 ETH and 30 LINK under the Rinkeby Testnet
  • I get the error code (see 1st paragraph) when I deploy using --- npx hardhat deploy --network rinkeby --tags svg

Also, I should mention that I added this to my hardhat.config.js:
module.exports = { rinkeby: { url: RINKEBY_RPC_URL, accounts: [PRIVATE_KEY], // accounts: { // mnemonic: MNEMONIC, // } }, mainnet: { url: MAINNET_RPC_URL, },

Do I need to indicate gas and gasLimit? Please help!

Thank you for keeping your keys safe :)

How much ETH do you have in your account? Post a link to your wallet?

I restarted my computer and it worked 👍

amazing