13

I want to test some api calls using web3.js and so I am using geth as HttpProvider. Can I start geth without the syncing?

Is something like geth --nosync --rpc available?

1 Answer 1

15

geth --maxpeers 0 will not sync. geth --maxpeers 0 console may be more helpful and will bring you the console: you don't even need the RPC, and can paste in and execute Javascript.

3
  • there are other command line options to tweak, you also may want to speed up mining to make your testing faster. See ethereum.stackexchange.com/questions/1217/…
    – Paul S
    Commented Feb 23, 2016 at 3:34
  • 1
    I'm really close to having a Docker image for the purposes of using geth for API and solidity testing. Will let you know
    – Paul S
    Commented Feb 23, 2016 at 3:37
  • @eth When I try this I can't send eth. I have empty chaindata and it looks like the block gas limit is stale. How can I send eth without syncing?
    – spraff
    Commented Jul 27, 2019 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.