PatrickAlphaC / all-on-chain-generated-nft

A repo for generating random NFTs with metadata 100% on chain!
MIT License
356 stars 150 forks source link

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

Closed yaizudamashii closed 3 years ago

yaizudamashii commented 3 years ago

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?

yaizudamashii commented 3 years ago

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.

PatrickAlphaC commented 3 years ago

Yes! Exactly!

thethunderbot commented 3 years ago

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:

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!

PatrickAlphaC commented 3 years ago

Thank you for keeping your keys safe :)

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

thethunderbot commented 3 years ago

I restarted my computer and it worked 👍

PatrickAlphaC commented 3 years ago

amazing