I've made an application in nodejs in which I'm doing truffle migrate to deploy contract and it make my contract's build saving my ABI which i use for contract invocation and the http provider for web3 is localhost:8545??? How should I switch to Geth environment if I want to test it on a public test network?? Been stuck at this query, any help appreciated.

1 Answer 1


Start geth:

geth --testnet --fast --rpc --rpcapi db,eth,net,web3,personal --cache=1024  --rpcport 8545 --rpcaddr --rpccorsdomain "*"

And use this RPC address (localhost:8545) at your nodejs application to do truffle migrate.

Do this way, if you are talking about Ropsten public testnet.

In the case of Kovan public testnet, start parity at the same address:

parity --chain=kovan

Your Answer

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

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