Skip to content

Instantly share code, notes, and snippets.

@Dhaiwat10
Created June 19, 2022 07:23
Show Gist options
  • Save Dhaiwat10/ac27bbcd27acb369c34e6ac8d5f67d37 to your computer and use it in GitHub Desktop.
Save Dhaiwat10/ac27bbcd27acb369c34e6ac8d5f67d37 to your computer and use it in GitHub Desktop.

Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{"jsonrpc":"2.0","id":52,"error":{"code":3,"message":"execution reverted: AccessControl: account 0x8d524d9473988731ddda2148f307b450ed022749 is missing role 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6","data":"0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000094416363657373436f6e74726f6c3a206163636f756e7420307838643532346439343733393838373331646464613231343866333037623435306564303232373439206973206d697373696e6720726f6c6520307839663264663066656432633737363438646535383630613463633530386364303831386338356238623861316162346365656566386439383163383935366136000000000000000000000000"}}","error":{"code":3,"data":"0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000094416363657373436f6e74726f6c3a206163636f756e7420307838643532346439343733393838373331646464613231343866333037623435306564303232373439206973206d697373696e6720726f6c6520307839663264663066656432633737363438646535383630613463633530386364303831386338356238623861316162346365656566386439383163383935366136000000000000000000000000"},"requestBody":"{"method":"eth_estimateGas","params":[{"from":"0x8d524d9473988731ddda2148f307b450ed022749","to":"0x24bb3e4c3b2611976aa5494790bd74e20f4cded3","data":"0x0075a3170000000000000000000000000ed6cec17f860fb54e21d154b49daefd9ca0410600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000037697066733a2f2f516d5575583171356b61737734537a6f69717451574e3244656257455035445a635650736f70516e7371687744442f30000000000000000000"}],"id":52,"jsonrpc":"2.0"}","requestMethod":"POST","url":"https://rpc.ankr.com/polygon_mumbai"}, method="estimateGas", transaction={"from":"0x8d524D9473988731ddDA2148F307B450ED022749","to":"0x24bB3E4C3b2611976aA5494790Bd74e20F4CdeD3","data":"0x0075a3170000000000000000000000000ed6cec17f860fb54e21d154b49daefd9ca0410600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000037697066733a2f2f516d5575583171356b61737734537a6f69717451574e3244656257455035445a635650736f70516e7371687744442f30000000000000000000","accessList":null}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.5.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment