Skip to content

Commit 4504cf7

Browse files
chore: use rich-account command for zkstack (#434)
- replaces zksync-cli bridge command with zkstack's rich-account command in prividium guide - adds zkstack's rich-account command to "using a local Zksync chain" page
1 parent 618c7b4 commit 4504cf7

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

content/10.zk-stack/20.running/20.using-a-local-zk-chain.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ If you choose to deploy on local [reth](https://ghcr.io/paradigmxyz/reth) node,
1717
You can find the list of rich wallets on GitHub in the [matter-labs/local-setup project](https://github.com/matter-labs/local-setup/blob/main/rich-wallets.json)
1818
and use these addresses to deposit into your ZKsync chain via the bridge.
1919

20+
You can use `zkstack` to bridge ETH from one of these rich wallets to a local chain:
21+
22+
```bash
23+
zkstack dev rich-account --chain <YOUR_CHAIN_NAME>
24+
```
25+
2026
### Base layer is an Ethereum network (e.g., Sepolia)
2127

2228
If you choose to deploy on an Ethereum network (e.g., Sepolia), you need to have an account on the base layer with ETH.

content/10.zk-stack/35.prividium/_partials/quickstart/_wallet.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,9 @@ You can find a full list of rich wallet addresses and their private keys in the
1212
Never use these wallets in production or send real funds to them.
1313
::
1414

15-
Open a new terminal and run the command below to bridge some ETH to `prividium_chain` using ZKsync CLI:
15+
Open a new terminal and run the command below to bridge some ETH to `prividium_chain`.
16+
This command will bridge 1 ETH to `0x36615cf349d7f6344891b1e7ca7c72883f5dc049`.
1617

1718
```bash
18-
npx zksync-cli bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545
19+
zkstack dev rich-account --chain prividium_chain
1920
```
20-
21-
For testing purposes, we'll use one of the rich wallets as both the sender and recipient:
22-
23-
```shell
24-
? Amount to deposit 10
25-
? Private key of the sender 0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110
26-
? Recipient address on L2 0x36615Cf349d7F6344891B1e7CA7C72883F5dc049
27-
```
28-
29-
To see that it worked, let's check the balance of that address on `prividium_chain`:
30-
31-
```bash
32-
npx zksync-cli wallet balance \
33-
--address 0x36615Cf349d7F6344891B1e7CA7C72883F5dc049 \
34-
--rpc http://localhost:3050
35-
```
36-
37-
Now this address has ETH available on `prividium_chain` to use for testing.

0 commit comments

Comments
 (0)