Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
docs(how-to): add zksync-cli instructions for l1-l2 tutorial (#799)
Browse files Browse the repository at this point in the history
* fix: adding cli mention in the tutorial

New line for using zksync-cli is added.
- for NPX
- for NPM (local package install)

* fix: new update

* Update docs/dev/how-to/send-transaction-l1-l2.md

Co-authored-by: Dennis <[email protected]>

* Update docs/dev/how-to/send-transaction-l1-l2.md

Co-authored-by: Dennis <[email protected]>

---------

Co-authored-by: Dennis <[email protected]>
  • Loading branch information
olehbairak and idea404 authored Nov 29, 2023
1 parent f0ff607 commit be3def0
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docs/dev/how-to/send-transaction-l1-l2.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,31 @@ Along with zkSync Era's built-in censorship resistance that requires multi-layer

User needs to perform next steps:

1. Run local node dockerized containers. [`Instructions how to run it`](https://github.com/matter-labs/local-setup/tree/main)
1. Run local node dockerized containers. [`Instructions how to run it`](https://github.com/matter-labs/local-setup/tree/main) or use [`zksync-cli`](https://github.com/matter-labs/zksync-cli):

::: code-tabs
@tab npx

```npx
npx zksync-cli dev config
// choose: Dockerized node - Persistent state, includes L1 and L2 nodes
// choose: BE and Portal (optional)
npx zksync-cli dev start
```

@tab npm

```npm
// install zksync-cli
npm i -g zksync-cli@latest
zksync-cli dev config
// choose: Dockerized node - Persistent state, includes L1 and L2 nodes
// choose: BE and Portal (optional)
zksync-cli dev start
```

:::

2. In the root folder of the imported project (step 1) create `file.js` and insert there code from example below
3. In the root folder add `.env` file with private key of wallet to use

Expand Down

0 comments on commit be3def0

Please sign in to comment.