diff --git a/docker-compose.yml b/docker-compose.yml index 9f9c38be..284dc4db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,8 +25,8 @@ services: ports: - "26659-26660:26656-26657" - "1318:1317" - - "8546:8545" - - "8546:8546" + - "8547:8545" + - "8548:8546" environment: - ID=1 - LOG=${LOG:-ethermintd.log} @@ -46,8 +46,8 @@ services: ports: - "26661-26662:26656-26657" - "1319:1317" - - "8547:8545" - - "8546:8546" + - "8549:8545" + - "8550:8546" volumes: - ./build:/ethermint:Z networks: @@ -64,8 +64,8 @@ services: ports: - "26663-26664:26656-26657" - "1320:1317" - - "8548:8545" - - "8546:8546" + - "8551:8545" + - "8552:8546" volumes: - ./build:/ethermint:Z networks: diff --git a/docs/quickstart/testnet.md b/docs/quickstart/testnet.md index 7eac33ec..100c9e1c 100644 --- a/docs/quickstart/testnet.md +++ b/docs/quickstart/testnet.md @@ -97,12 +97,12 @@ make localnet-start This command creates a 4-node network using the `ethermintdnode` Docker image. The ports for each node are found in this table: -| Node ID | P2P Port | REST/RPC Port | -|------------------|----------|---------------| -| `ethermintnode0` | `26656` | `26657` | -| `ethermintnode1` | `26659` | `26660` | -| `ethermintnode2` | `26661` | `26662` | -| `ethermintnode3` | `26663` | `26664` | +| Node ID | P2P Port | Tendermint RPC Port | REST/ Ethereum JSON-RPC Port | WebSocket Port | +|------------------|----------|---------------------|------------------------------|----------------| +| `ethermintnode0` | `26656` | `26657` | `8545` | `8546` | +| `ethermintnode1` | `26659` | `26660` | `8547` | `8548` | +| `ethermintnode2` | `26661` | `26662` | `8549` | `8550` | +| `ethermintnode3` | `26663` | `26664` | `8551` | `8552` | To update the binary, just rebuild it and restart the nodes @@ -239,15 +239,16 @@ docker logs -f ethermintdnode0 To interact with the testnet via WebSockets or RPC/API, you will send your request to the corresponding ports: -| Eth JSON-RPC | Eth WS | +| Eth JSON-RPC | Eth WS | |--------------|--------| -| `8545` | `8546` | +| `8545` | `8546` | You can send a curl command such as: ```bash curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' -H "Content-Type: application/json" 192.162.10.1:8545 ``` + ::: tip The IP address will be the public IP of the docker container. :::