Skip to content

Commit 6c187a7

Browse files
committed
Update node CLI with ws params removal
1 parent da9ef98 commit 6c187a7

File tree

13 files changed

+19
-43
lines changed

13 files changed

+19
-43
lines changed

docs/build/EVM/developer-tooling/own-RPC.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ The EVM RPC server is disabled by default. To enable it, append the `--enable-ev
1616
:::
1717

1818
```
19-
astar-collator --chain=shiden --enable-evm-rpc --unsafe-rpc-external --unsafe-ws-external
19+
astar-collator --chain=shiden --enable-evm-rpc --unsafe-rpc-external
2020
```
2121

22-
The launch string above will start an Astar Collator on Shiden network, open up an HTTP endpoint on port `9933`, and a WS endpoint on port `9944`.
22+
The launch string above will start an Astar Collator on Shiden network, open up an WS/HTTP endpoint on port `9944`.
2323

24-
We also recommend paying attention to the `--ws-max-connections` parameter. By default this value is relatively small, so it may be beneficial to increase it to a few thousand.
24+
We also recommend paying attention to the `--rpc-max-connections` parameter. By default this value is relatively small, so it may be beneficial to increase it to a few thousand.

docs/build/EVM/evm-debug-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ For example, for the `debug_traceTransaction` method, you can make the following
7171
:::
7272

7373
```
74-
curl http://127.0.0.1:9933 -H "Content-Type:application/json;charset=utf-8" -d \
74+
curl http://127.0.0.1:9944 -H "Content-Type:application/json;charset=utf-8" -d \
7575
'{
7676
"jsonrpc":"2.0",
7777
"id":1,
@@ -85,7 +85,7 @@ The node responds with the step-by-step replayed transaction information.
8585
For the `trace_filter` call, you can make the following JSON RPC request in your terminal (in this case, the filter is from block 20000 to 25000, only for transactions where the recipient is 0x4E0078423a39EfBC1F8B5104540aC2650a756577, it will start with a zero offset and provide the first 20 traces):
8686

8787
```
88-
curl http://127.0.0.1:9933 -H "Content-Type:application/json;charset=utf-8" -d \
88+
curl http://127.0.0.1:9944 -H "Content-Type:application/json;charset=utf-8" -d \
8989
'{
9090
"jsonrpc":"2.0",
9191
"id":1,
@@ -106,7 +106,7 @@ Let's get pool status using `curl` HTTP POST request.
106106
:::
107107

108108
```
109-
curl http://127.0.0.1:9933 -H "Content-Type:application/json;charset=utf-8" -d \
109+
curl http://127.0.0.1:9944 -H "Content-Type:application/json;charset=utf-8" -d \
110110
'{
111111
"jsonrpc":"2.0",
112112
"id":1,

docs/build/EVM/first-contract/metamask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It's easy to configure MetaMask to interact with the Astar/Shiden network family
1313
| Properties | Network Details |
1414
| ----------------------------- | ------------------------------ |
1515
| Network Name | My Network (anything you want) |
16-
| New RPC URL | http://127.0.0.1:9933 |
16+
| New RPC URL | http://127.0.0.1:9944 |
1717
| Chain ID | 4369 |
1818
| Currency Symbol | ASTL |
1919
| Block Explorer URL (Optional) | |

docs/build/builder-guides/astar_features/run_local_network.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@ Please rename the binary file to `astar`, for illustration purposes the consiste
8080

8181
Run the local network with the following configurations:
8282
- `--port 30333`: use `port 30333` for P2P TCP connection
83-
- `--ws-port 9944`: use `port 9944` for WebSocket connection
84-
- `--rpc-port 9933`: use `port 9933` for RPC
83+
- `--rpc-port 9944`: use `port 9944` for RPC, both WS(s) and HTTP(s)
8584
- `--rpc-cors all`: accept any origins for HTTP and WebSocket connections
8685
- `--alice`: enable `Alice` session keys
8786
- `--dev`: launch the network in development mode
8887

8988
```jsx
90-
./astar --port 30333 --ws-port 9944 --rpc-port 9933 --rpc-cors all --alice --dev
89+
./astar --port 30333 --rpc-port 9944 --rpc-cors all --alice --dev
9190
```
9291

9392
You will be able to see the local Astar collator node info and new blocksafter successfully running it.
@@ -119,7 +118,7 @@ When using the local blockchain with other dev tools including MetaMask, Hardhat
119118

120119
| Network Name | Local Astar Testnet 0 |
121120
| --- | --- |
122-
| New RPC URL | http://127.0.0.1:9933 |
121+
| New RPC URL | http://127.0.0.1:9944 |
123122
| Chain ID | 4369 |
124123
| Currency Symbol | ASTL |
125124

docs/build/environment/local-network.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ You should then be able to execute the binary. To see whether you can run the n
3333
You are now ready to run the local network, using the following command:
3434

3535
```sh
36-
./astar --port 30333 --ws-port 9944 --rpc-port 9933 --rpc-cors all --alice --dev
36+
./astar --port 30333 --rpc-port 9944 --rpc-cors all --alice --dev
3737
```
3838

3939
What this command means:
4040

4141
- Use port 30333 for P2P TCP connection
42-
- Use port 9944 for WebSocket connection
43-
- Use port 9933 for RPC
42+
- Use port 9944 for WebSocket/Http connection
4443
- Accept any origin for HTTP and WebSocket connections
4544
- Enable Alice session keys
4645
- Launch network in development mode

docs/build/wasm/swanky-suite/node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Swanky Node enables both Manual seal and Instant seal.
148148
We can tell the node to author a block by calling the `engine_createBlock` RPC.
149149

150150
```bash
151-
$ curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d '{
151+
$ curl http://localhost:9944 -H "Content-Type:application/json;charset=utf-8" -d '{
152152
"jsonrpc":"2.0",
153153
"id":1,
154154
"method":"engine_createBlock",
@@ -172,7 +172,7 @@ $ curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d
172172
In addition to finalizing blocks at the time of creating them, they may also be finalized later by using the RPC call `engine_finalizeBlock`.
173173

174174
```bash
175-
$ curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d '{
175+
$ curl http://localhost:9944 -H "Content-Type:application/json;charset=utf-8" -d '{
176176
"jsonrpc":"2.0",
177177
"id":1,
178178
"method":"engine_finalizeBlock",

docs/nodes/archive-node/binary.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ ExecStart=/usr/local/bin/astar-collator \
7979
--chain astar \
8080
--base-path /var/lib/astar \
8181
--rpc-external \
82-
--ws-external \
8382
--rpc-methods Safe \
8483
--rpc-max-request-size 1 \
8584
--rpc-max-response-size 1 \
@@ -110,7 +109,6 @@ ExecStart=/usr/local/bin/astar-collator \
110109
--chain shiden \
111110
--base-path /var/lib/astar \
112111
--rpc-external \
113-
--ws-external \
114112
--rpc-methods Safe \
115113
--rpc-max-request-size 1 \
116114
--rpc-max-response-size 1 \
@@ -141,7 +139,6 @@ ExecStart=/usr/local/bin/astar-collator \
141139
--chain shibuya \
142140
--base-path /var/lib/astar \
143141
--rpc-external \
144-
--ws-external \
145142
--rpc-methods Safe \
146143
--rpc-max-request-size 1 \
147144
--rpc-max-response-size 1 \
@@ -182,7 +179,7 @@ sudo systemctl enable astar.service
182179
You can test the node health through the RPC port with this command:
183180

184181
```sh
185-
curl -H "Content-Type: application/json" --data '{ "jsonrpc":"2.0", "method":"system_health", "params":[],"id":1 }' localhost:9933
182+
curl -H "Content-Type: application/json" --data '{ "jsonrpc":"2.0", "method":"system_health", "params":[],"id":1 }' localhost:9944
186183
```
187184

188185
## Next steps

docs/nodes/archive-node/docker.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ docker run -d \
3939
--name astar-container \
4040
-u $(id -u astar):$(id -g astar) \
4141
-p 30333:30333 \
42-
-p 9933:9933 \
4342
-p 9944:9944 \
4443
-v "/var/lib/astar/:/data" \
4544
staketechnologies/astar-collator:latest \
@@ -50,7 +49,6 @@ astar-collator \
5049
--chain astar \
5150
--base-path /data \
5251
--rpc-external \
53-
--ws-external \
5452
--rpc-methods Safe \
5553
--rpc-max-request-size 1 \
5654
--rpc-max-response-size 1 \
@@ -66,7 +64,6 @@ docker run -d \
6664
--name shiden-container \
6765
-u $(id -u astar):$(id -g astar) \
6866
-p 30333:30333 \
69-
-p 9933:9933 \
7067
-p 9944:9944 \
7168
-v "/var/lib/astar/:/data" \
7269
staketechnologies/astar-collator:latest \
@@ -77,7 +74,6 @@ astar-collator \
7774
--chain astar \
7875
--base-path /data \
7976
--rpc-external \
80-
--ws-external \
8177
--rpc-methods Safe \
8278
--rpc-max-request-size 1 \
8379
--rpc-max-response-size 1 \
@@ -93,7 +89,6 @@ docker run -d \
9389
--name shibuya-container \
9490
-u $(id -u astar):$(id -g astar) \
9591
-p 30333:30333 \
96-
-p 9933:9933 \
9792
-p 9944:9944 \
9893
-v "/var/lib/astar/:/data" \
9994
staketechnologies/astar-collator:latest \
@@ -104,7 +99,6 @@ astar-collator \
10499
--chain astar \
105100
--base-path /data \
106101
--rpc-external \
107-
--ws-external \
108102
--rpc-methods Safe \
109103
--rpc-max-request-size 1 \
110104
--rpc-max-response-size 1 \
@@ -117,7 +111,7 @@ astar-collator \
117111
Test the node health via the RPC port with this command:
118112

119113
```sh
120-
curl -H "Content-Type: application/json" --data '{ "jsonrpc":"2.0", "method":"system_health", "params":[],"id":1 }' localhost:9933
114+
curl -H "Content-Type: application/json" --data '{ "jsonrpc":"2.0", "method":"system_health", "params":[],"id":1 }' localhost:9944
121115
```
122116

123117
## Next steps

docs/nodes/archive-node/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ The Astar node runs in parachain configuration, meaning they will listen at diff
7070
|Description| Parachain Port | Relaychain Port | Custom Port Flag |
7171
|---|---|---|---|
7272
| P2P | 30333 | 30334 | `--port` |
73-
| WS | 9944 | 9945 | `--ws-port` |
74-
| RPC | 9933 | 9934 | `--rpc-port` |
73+
| RPC | 9944 | 9945 | `--rpc-port` |
7574
| Prometheus | 9615 | 9616 | `--prometheus-port` |
7675

7776
For all types of nodes, ports `30333` and `30334` need to be opened for incoming traffic at the Firewall.

docs/nodes/archive-node/nginx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ server {
130130
```
131131
:::info
132132
In the example above, note that port 9944 is used in proxy_pass. This is the WS port.
133-
Change this to 9933 to pass the RPC port.
133+
Change this to 9944 to pass the RPC port.
134134
:::
135135

136136
Check and restart nginx:

0 commit comments

Comments
 (0)