Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Geth setup with Docker
```
docker run -d \
--name geth-test \
-p 8545:8545 \
-v ~/.docker/machine/volumes/geth-test/data:/root/.ethereum \
ethereum/client-go \
--testnet \
--rpc \
--rpcaddr "0.0.0.0" \
--rpccorsdomain "*" \
--rpcapi "db,eth,net,web3,personal,web3" \
--cache=512
```
```
docker exec -it geth-test geth console --port 35555
```
```
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' http://localhost:8545
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment