Skip to content

Commit 4166c1a

Browse files
update the deployment guide
1 parent d76d1de commit 4166c1a

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

docs/cdk/getting-started/local-deployment.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,43 +134,40 @@ Below are a few examples of how you can interact with the chain.
134134

135135
Let's do some read and write operations and test transactions on the L2 with Foundry.
136136
137-
1. Use `cast` to view information about the chain, such as the latest block number:
137+
1. To facilitate the operations, export the RPC URL of your L2 to an environment variable called `ETH_RPC_URL` with the following command:
138+
139+
```bash
140+
export ETH_RPC_URL="$(kurtosis port print cdk cdk-erigon-node-001 rpc)"
141+
```
142+
143+
2. Use `cast` to view information about the chain, such as the latest block number:
138144
139145
```bash
140146
cast block-number
141147
```
142148
143-
2. View the balance of an address, such as the pre-funded admin account:
149+
3. View the balance of an address, such as the pre-funded admin account:
144150
145151
```bash
146152
cast balance --ether 0xE34aaF64b29273B7D567FCFc40544c014EEe9970
147153
```
148154
149-
3. Send simple transactions to the chain, such as a transfer of some ETH:
155+
4. Send simple transactions to the chain, such as a transfer of some ETH:
150156
151157
```bash
152158
cast send --legacy --value 0.01ether 0x0000000000000000000000000000000000000000 --private-key "0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625"
153159
```
154160
155161
### Load testing the chain
156162
157-
!!! tip
158-
You may need to adjust the various commands slightly if you deployed the legacy zkevm-node as the sequencer. You should target the zkevm-node-rpc-001 service instead of cdk-erigon-node-001
159-
160-
1. Export the RPC URL of your L2 to an environment variable called `ETH_RPC_URL` with the following command:
161-
162-
```bash
163-
eexport ETH_RPC_URL="$(kurtosis port print cdk cdk-erigon-node-001 rpc)"
164-
```
165-
166-
2. Let's send a transaction with cast:
163+
1. Let's send a transaction with cast:
167164

168165
```bash
169166
export PK="0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625"
170167
cast send --legacy --private-key "$PK" --value 0.01ether 0x0000000000000000000000000000000000000000
171168
```
172169

173-
3. Use the [`polycli loadtest`](https://github.com/maticnetwork/polygon-cli/blob/main/doc/polycli_loadtest.md) command to send multiple transactions at once to the chain to test its performance:
170+
2. Use the [`polycli loadtest`](https://github.com/maticnetwork/polygon-cli/blob/main/doc/polycli_loadtest.md) command to send multiple transactions at once to the chain to test its performance:
174171

175172
```bash
176173
polycli loadtest --rpc-url "$ETH_RPC_URL" --legacy --private-key "$PK" --verbosity 700 --requests 50000 --rate-limit 50 --concurrency 5 --mode t
@@ -209,10 +206,10 @@ cast rpc zkevm_verifiedBatchNumber # Latest batch verified or "proven" on the L
209206
210207
### Opening the bridge UI
211208
212-
To open the bridge interface and bridge tokens across the L1 and L2, run the following command:
209+
To open the `zkevm-bridge` interface and bridge tokens across the L1 and L2, run the following command:
213210
214211
```bash
215-
open $(kurtosis port print cdk-v1 zkevm-bridge-proxy-001 web-ui)
212+
open $(kurtosis port print cdk zkevm-bridge-proxy-001 web-ui)
216213
```
217214
218215
## Additional services

0 commit comments

Comments
 (0)