Skip to content

Instantly share code, notes, and snippets.

@0xNonCents
Created March 30, 2023 15:31
Show Gist options
  • Save 0xNonCents/c00d6a643246989e5709256052997dcc to your computer and use it in GitHub Desktop.
Save 0xNonCents/c00d6a643246989e5709256052997dcc to your computer and use it in GitHub Desktop.
Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted", method="estimateGas", transaction={"from":"0xCf5BF9F46FAb2F8EFC9e4118AAEDeBDF44092536","to":"0x5b8bB80f2d72D0C85caB8fB169e8170A05C94bAF","data":"0x84efbaa10000000000000000000000000000000000000000000000000000000000000001","accessList":null}, error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":47,\"error\":{\"code\":3,\"message\":\"execution reverted\",\"data\":\"0x4e487b710000000000000000000000000000000000000000000000000000000000000011\"}}","error":{"code":3,"data":"0x4e487b710000000000000000000000000000000000000000000000000000000000000011"},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"from\":\"0xcf5bf9f46fab2f8efc9e4118aaedebdf44092536\",\"to\":\"0x5b8bb80f2d72d0c85cab8fb169e8170a05c94baf\",\"data\":\"0x84efbaa10000000000000000000000000000000000000000000000000000000000000001\"}],\"id\":47,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://arb-mainnet.g.alchemy.com/v2/q4yum1v7XoySK0yk2IqbS4B7GKvr5hqr"}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)
at Logger.makeError (/root/beacon-2/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/root/beacon-2/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at checkError (/root/beacon-2/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:78:20)
at StaticJsonRpcProvider.<anonymous> (/root/beacon-2/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:642:20)
at step (/root/beacon-2/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/root/beacon-2/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/root/beacon-2/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
reason: 'execution reverted',
code: 'UNPREDICTABLE_GAS_LIMIT',
method: 'estimateGas',
transaction: {
from: '0xCf5BF9F46FAb2F8EFC9e4118AAEDeBDF44092536',
to: '0x5b8bB80f2d72D0C85caB8fB169e8170A05C94bAF',
data: '0x84efbaa10000000000000000000000000000000000000000000000000000000000000001',
accessList: null
},
error: Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":47,\"error\":{\"code\":3,\"message\":\"execution reverted\",\"data\":\"0x4e487b710000000000000000000000000000000000000000000000000000000000000011\"}}", error={"code":3,"data":"0x4e487b710000000000000000000000000000000000000000000000000000000000000011"}, requestBody="{\"method\":\"eth_estimateGas\",\"params\":[{\"from\":\"0xcf5bf9f46fab2f8efc9e4118aaedebdf44092536\",\"to\":\"0x5b8bb80f2d72d0c85cab8fb169e8170a05c94baf\",\"data\":\"0x84efbaa10000000000000000000000000000000000000000000000000000000000000001\"}],\"id\":47,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://arb-mainnet.g.alchemy.com/v2/q4yum1v7XoySK0yk2IqbS4B7GKvr5hqr", code=SERVER_ERROR, version=web/5.7.1)
at Logger.makeError (/root/beacon-2/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/root/beacon-2/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at /root/beacon-2/node_modules/@ethersproject/web/src.ts/index.ts:341:28
at step (/root/beacon-2/node_modules/@ethersproject/web/lib/index.js:33:23)
at Object.next (/root/beacon-2/node_modules/@ethersproject/web/lib/index.js:14:53)
at fulfilled (/root/beacon-2/node_modules/@ethersproject/web/lib/index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
reason: 'processing response error',
code: 'SERVER_ERROR',
body: '{"jsonrpc":"2.0","id":47,"error":{"code":3,"message":"execution reverted","data":"0x4e487b710000000000000000000000000000000000000000000000000000000000000011"}}',
error: Error: execution reverted
at getResult (/root/beacon-2/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:142:28)
at processJsonFunc (/root/beacon-2/node_modules/@ethersproject/web/src.ts/index.ts:383:22)
at /root/beacon-2/node_modules/@ethersproject/web/src.ts/index.ts:320:42
at step (/root/beacon-2/node_modules/@ethersproject/web/lib/index.js:33:23)
at Object.next (/root/beacon-2/node_modules/@ethersproject/web/lib/index.js:14:53)
at fulfilled (/root/beacon-2/node_modules/@ethersproject/web/lib/index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 3,
data: '0x4e487b710000000000000000000000000000000000000000000000000000000000000011'
},
requestBody: '{"method":"eth_estimateGas","params":[{"from":"0xcf5bf9f46fab2f8efc9e4118aaedebdf44092536","to":"0x5b8bb80f2d72d0c85cab8fb169e8170a05c94baf","data":"0x84efbaa10000000000000000000000000000000000000000000000000000000000000001"}],"id":47,"jsonrpc":"2.0"}',
requestMethod: 'POST',
url: 'https://arb-mainnet.g.alchemy.com/v2/q4yum1v7XoySK0yk2IqbS4B7GKvr5hqr'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment