Search code examples
soliditynfthardhat

insufficient funds for intrinsic transaction cost on test ropsten server


I'm trying to follow a tutorial to create an NFT: https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/

I took a faucet here: https://faucet.metamask.io/

But when trying to mint the contract I get this error:

λ npx hardhat --network ropsten run scripts/deploy.js 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.3) at Logger.makeError (E:\chat\nft\my-nft\node_modules\@ethersproject\logger\src.ts\index.ts:225:28) at Logger.throwError (E:\chat\nft\my-nft\node_modules\@ethersproject\logger\src.ts\index.ts:237:20) at checkError (E:\chat\nft\my-nft\node_modules\@ethersproject\providers\src.ts\json-rpc-provider.ts:53:16) at E:\chat\nft\my-nft\node_modules\@ethersproject\providers\src.ts\json-rpc-provider.ts:215:24 at processTicksAndRejections (internal/process/task_queues.js:93:5) { reason: 'insufficient funds for intrinsic transaction cost', code: 'INSUFFICIENT_FUNDS', error: ProviderError: insufficient funds for gas * price + value at HttpProvider.request (E:\chat\nft\my-nft\node_modules\hardhat\src\internal\core\providers\http.ts:49:19) at LocalAccountsProvider.request (E:\chat\nft\my-nft\node_modules\hardhat\src\internal\core\providers\accounts.ts:182:36) at processTicksAndRejections (internal/process/task_queues.js:93:5) at EthersProviderWrapper.send (E:\chat\nft\my-nft\node_modules\@nomiclabs\hardhat-ethers\src\internal\ethers-provider-wrapper.ts:13:20), method: 'sendTransaction', transaction: undefined } I have tried to find on the net I do not understand why it does not work when I am on the ropsten test network.

how i can solve this problem?

Thank you


Solution

  • I also had the same problem, and I reached the same point in that tutorial failing with the same exact message.

    The problem on my side was the address was indeed without funds. Go to this address to request funds from the faucet https://fauceth.komputing.org/ and enter your wallet address from metamask. if you have the browser extension you can find your correct address right there, see the following image:

    MetaMask Browser Extension

    You can also check on Etherscan to validate if the funds are really there in your address.

    Hope it helps Rija Cloud !