Skip to content

Instantly share code, notes, and snippets.

@hhua
Last active December 12, 2018 01:22
Show Gist options
  • Save hhua/be3a576f0fe1cb9f29be2e8a051fbdf3 to your computer and use it in GitHub Desktop.
Save hhua/be3a576f0fe1cb9f29be2e8a051fbdf3 to your computer and use it in GitHub Desktop.
Run Geth on GCP
geth --cache 1024 --gcmode=archive --syncmode=full console --rpc --rpcapi eth,web3,admin,debug,miner,personal,txpool,db
curl -4 -i -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"debug_getModifiedAccountsByNumber","params":[4000000],"id":1}' http://localhost:8545
curl -4 -i -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"debug_traceBlockByHash","params":["0xefb816edfb39869209734532606f2c9ea18b9bf8de95c24efec341267de7b1ec",{"tracer": "callTracer", "timeout": "8m"}],"id":1}' http://localhost:8545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment