mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 21:17:54 -05:00
Updated 127.0.0.1 to localhost in examples
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
This commit is contained in:
@@ -47,13 +47,13 @@ call [JSON-RPC API methods](../Reference/JSON-RPC-API-Methods.md) to confirm the
|
||||
* `eth_chainId` returns the chain ID of the network.
|
||||
|
||||
```bash
|
||||
$ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' 127.0.0.1:8545
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' localhost:8545
|
||||
```
|
||||
|
||||
* `eth_syncing` returns the starting, current, and highest block.
|
||||
|
||||
```bash
|
||||
$ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' 127.0.0.1:8545
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' localhost:8545
|
||||
```
|
||||
|
||||
For example, after connecting to mainnet `eth_syncing` will return something similar to:
|
||||
|
||||
@@ -264,7 +264,7 @@ The command line specifies:
|
||||
Start another terminal, use curl to call the JSON-RPC API [`net_peerCount`](../Reference/JSON-RPC-API-Methods.md#net_peercount) method and confirm the nodes are functioning as peers:
|
||||
|
||||
```bash
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' 127.0.0.1:8545
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' localhost:8545
|
||||
```
|
||||
|
||||
The result confirms Node-1 has two peers (Node-2 and Node-3):
|
||||
|
||||
@@ -276,7 +276,7 @@ The command line specifies:
|
||||
Start another terminal, use curl to call the JSON-RPC API [`net_peerCount`](../Reference/JSON-RPC-API-Methods.md#net_peercount) method and confirm the nodes are functioning as peers:
|
||||
|
||||
```bash
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' 127.0.0.1:8545
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' localhost:8545
|
||||
```
|
||||
|
||||
The result confirms Node-1 (the node running the JSON-RPC service) has two peers (Node-2 and Node-3):
|
||||
@@ -327,7 +327,7 @@ pantheon --data-path=Node-4-data-path --bootnodes="enode://<publicKeyNode1 ex 0x
|
||||
Start another terminal, use curl to call the JSON-RPC API [`net_peerCount`](../Reference/JSON-RPC-API-Methods.md#net_peercount) method:
|
||||
|
||||
```bash
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' 127.0.0.1:8548
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' localhost:8548
|
||||
```
|
||||
|
||||
The result confirms Node-4 has no peers even though it specifies Node-1 as a bootnode:
|
||||
|
||||
@@ -226,7 +226,7 @@ The command line specifies:
|
||||
Start another terminal, use curl to call the JSON-RPC API [`net_peerCount`](../Reference/JSON-RPC-API-Methods.md#net_peercount) method and confirm the nodes are functioning as peers:
|
||||
|
||||
```bash
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' 127.0.0.1:8545
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' localhost:8545
|
||||
```
|
||||
|
||||
The result confirms Node-1 has two peers (Node-2 and Node-3):
|
||||
|
||||
@@ -180,7 +180,7 @@ The command line specifies:
|
||||
Start another terminal, use curl to call the JSON-RPC API [`net_peerCount`](../Reference/JSON-RPC-API-Methods.md#net_peercount) method and confirm the nodes are functioning as peers:
|
||||
|
||||
```bash
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' 127.0.0.1:8545
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' localhost:8545
|
||||
```
|
||||
|
||||
The result confirms Node-1 (the node running the JSON-RPC service) has two peers (Node-2 and Node-3):
|
||||
|
||||
Reference in New Issue
Block a user