Giter Site home page Giter Site logo

"Cannot estimate gas; transaction may fail or may require manual gas limit" when deploying the contract about nft-deployment-amazon-managed-blockchain HOT 7 CLOSED

aws-samples avatar aws-samples commented on August 24, 2024
"Cannot estimate gas; transaction may fail or may require manual gas limit" when deploying the contract

from nft-deployment-amazon-managed-blockchain.

Comments (7)

advapiIT avatar advapiIT commented on August 24, 2024 1

Hello @pravinva , using your app to create private key worked flawlessy
Thanks!

from nft-deployment-amazon-managed-blockchain.

pravinva avatar pravinva commented on August 24, 2024

Can you check (perhaps on etherscan.io) if you've added the test eth to the correct wallet. it should be in the sending wallet and not the receiving one which is used for receiving the minted token. (i,e the wallet associated with the pvt key stored in ssm)
ethers library does not seem to provide better handling for such errors, but from experience, this error is likely because you may have not added token to the correct wallet

from nft-deployment-amazon-managed-blockchain.

advapiIT avatar advapiIT commented on August 24, 2024

Hello,
Yes as you can see i've got the eth here
for what concern the private key I had to use the following script to retrive it

var keythereum = require("keythereum");
var datadir = "C:\\Users\\xxx\\AppData\\Local\\Ethereum\\rinkeby";
var address= "0x1Eccba5f2133bEBD720B291ab269b51ba426Ee66";
const password = "MyPWD!!!";

and I got a string as bab6b0f5cf16287ed6042386f44329a647bb4c9e3772776244484d996fc36c38 is this one I have to put in the SSM?

I got a different error now... no more error on gas fee but got

{"Error":{"code":-32000,"transaction":{"type":2,"chainId":4,"nonce":0,"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x9502f900"},"maxFeePerGas":{"type":"BigNumber","hex":"0xc58369ea"},"gasPrice":null,"gasLimit":{"type":"BigNumber","hex":"0xc350"},"to":null,"value":{"type":"BigNumber","hex":"0x00"},"data":"","accessList":[],"hash":"0x864a7a6c60192362d842d9d2a407351c2f94814bf82a652ec10823b6d6640ad8","v":0,"r":"0x60a01e3e991f69f1de6a3ec1c8f330b28bad2af0fce157cd121eb4e0025e7220","s":"0x3fb2a4e6d8bfd3ad00b95a323beddac396972935f988e0edc96a6d57fed747e1","from":"0x1Eccba5f2133bEBD720B291ab269b51ba426Ee66","confirmations":0},"transactionHash":"0x864a7a6c60192362d842d9d2a407351c2f94814bf82a652ec10823b6d6640ad8"}}


What is -32000?

Thanks

from nft-deployment-amazon-managed-blockchain.

pravinva avatar pravinva commented on August 24, 2024

Debugging ethers library errors is beyond the scope of this activity. I have uploaded a zip file with an utility to create pvt keys and corresponding wallet address under misc/create-eth-wallet.zip. Please unzip it, and run the shell utility provided to generate the credentials and then follow instructions

from nft-deployment-amazon-managed-blockchain.

advapiIT avatar advapiIT commented on August 24, 2024

from nft-deployment-amazon-managed-blockchain.

pravinva avatar pravinva commented on August 24, 2024

@advapiIT Please let me know if you were able to get your setup working and can close this issue?

from nft-deployment-amazon-managed-blockchain.

pravinva avatar pravinva commented on August 24, 2024

closing issue

from nft-deployment-amazon-managed-blockchain.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.