Skip to content

Commit 7daa0e7

Browse files
committed
improvements
1 parent 1a778ba commit 7daa0e7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/src/guides/external-node/11_setup_for_other_chains.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ than ZKsync Era.
1212
The `EN_L2_CHAIN_ID` environment variable specifies the Layer 2 chain ID of the blockchain.
1313

1414
You can get it using main node rpc call `eth_chainId` or by asking the company hosting the chain. For example:
15+
1516
```
1617
curl -X POST https://mainnet.era.zksync.io \
1718
-H "Content-Type: application/json" \
1819
-d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}'
1920
```
21+
2022
returns
23+
2124
```
2225
{ "jsonrpc": "2.0", "result": "0x144", "id": 1}
2326
```
27+
2428
where `0x144` is the chain ID (324 in decimal)
2529

2630
## 2. Update `EN_MAIN_NODE_URL`
@@ -33,9 +37,8 @@ Snapshots recovery is a feature that allows faster Node startup at the cost of n
3337
ZKsync Era docker-compose file has this feature enabled, but it's only recommended to use if the Node first startup time
3438
is too slow. It can be disabled by changing `EN_SNAPSHOTS_RECOVERY_ENABLED` to `false`
3539

36-
If you want to keep this feature enabled for a Node, ask the company hosting the chain for the bucket name where the snapshots
37-
are stored and update the value of `EN_SNAPSHOTS_OBJECT_STORE_BUCKET_BASE_URL`
38-
40+
If you want to keep this feature enabled for a Node, ask the company hosting the chain for the bucket name where the
41+
snapshots are stored and update the value of `EN_SNAPSHOTS_OBJECT_STORE_BUCKET_BASE_URL`
3942

4043
## 4. Disable consensus
4144

0 commit comments

Comments
 (0)