Skip to content

Instantly share code, notes, and snippets.

@tomlinton
Created August 18, 2020 11:07
Show Gist options
  • Save tomlinton/4f46f0a4fb81bed91f529db6185ad3c2 to your computer and use it in GitHub Desktop.
Save tomlinton/4f46f0a4fb81bed91f529db6185ad3c2 to your computer and use it in GitHub Desktop.
eth_estimateGas
> {
> "jsonrpc": "2.0",
> "method": "eth_estimateGas",
> "params": [
> {
> "from": "0x1974f84881af4204a21f18c43d7c4d9dee331bb5",
> "to": "0xe6f223de7f7de51f258f9dcb28174736fb5dcc2a",
> "data": "0xd3148fb6000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000005f5e100"
> }
> ],
> "id": 158
> }
< {
< "id": 158,
< "jsonrpc": "2.0",
< "error": {
< "message": "VM Exception while processing transaction: revert",
< "code": -32000,
< "data": {
< "stack": "RuntimeError: VM Exception while processing transaction: revert\n at Function.RuntimeError.fromResults (/Users/tom/Code/origin-dollar/contracts/node_modules/ganache-core/lib/utils/runtimeerror.js:90:13)\n at module.exports (/Users/tom/Code/origin-dollar/contracts/node_modules/ganache-core/lib/utils/gas/guestimation.js:142:32)",
< "name": "RuntimeError"
< }
< }
< }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment