Skip to content

Commit

Permalink
Update faq.md and add all the info
Browse files Browse the repository at this point in the history
  • Loading branch information
bxpana authored Jun 14, 2023
1 parent 0d12da6 commit f960b91
Showing 1 changed file with 117 additions and 21 deletions.
138 changes: 117 additions & 21 deletions frequently-asked-questions/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,143 @@
<details>

<summary>Table of Contents</summary>
* [What is zkSync?](faq.md#what-is-zksync)

* [What is zkSync Era?](faq.md#what-is-zksync-era)

[**zkSync Era**](faq.md#zksync-era)
* [What is zkSync Lite?](faq.md#what-is-zksync-lite)

* [How do fees work on zkSync?](faq.md#how-do-fees-work-on-zksync)

* [How long are withdrawal times?](faq.md#how-long-are-withdrawal-times)

* [What is zkSync Era?](faq.md#what-is-zksync-era)
* [Where can I see my funds after a withdrawal?](faq.md#where-can-i-see-my-funds-after-a-withdrawal)

* [Can I send funds to or from a Centralized Exchange to zkSync?](faq.md#can-i-send-funds-to-or-from-a-centralized-exchange-to-zksync)

* [What is the account activation fee?](faq.md#)

[**zkSync Lite**](faq.md#zksync-lite)
* [What do the statuses mean of a transaction?](faq.md#)

* [How long does a deposit take?](faq.md#)

* [Is there a token for zkSync?](faq.md#)

* [What is zkSync Lite?](faq.md#what-is-zksync-lite?)
* [Can I run a validator or a node for zkSync?](faq.md#)

* [Is there a list of projects in the zkSync Ecosystem?](faq.md#)

</details>

## General
## What is zkSync?

## zkSync Era
zkSync is a user-centric, Layer 2, zkRollup platform from [Matter Labs](https://matter-labs.io/). It is a scaling solution for Ethereum, already live on Ethereum mainnet.

### What is zkSync Era?
## What is zkSync Era?

<table><thead><tr><th>Feature</th><th>zkSync Era (formerly zkSync 2.0)</th><th data-hidden>zkSync Lite (formerly zkSync 1.0)</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>zkSync Era is a Zero Knowledge (ZK) rollup that supports generalized EVM compatibility for the Ethereum blockchain.</td><td>zkSync Lite is a trustless protocol for scalable low-cost payments on Ethereum, powered by zkRollup technology.</td></tr><tr><td><strong>Mainnet</strong></td><td><a href="https://blog.matter-labs.io/gm-zkevm-171b12a26b36">March 24, 2023</a></td><td><a href="https://blog.matter-labs.io/zksync-is-live-bringing-trustless-scalable-payments-to-ethereum-9c634b3e6823">June 18, 2020</a></td></tr><tr><td><strong>Purpose</strong></td><td>Universal</td><td>Payments, NFTs, Atomic Swaps</td></tr><tr><td><strong>Smart Contracts</strong></td><td>✅</td><td>❌</td></tr></tbody></table>

You can learn more about both protocols on [L2beat.com](https://l2beat.com/scaling/projects/zksync-era).

### How to use zkSync Era mainnet
## What is zkSync Lite?

#### Users:
<table><thead><tr><th>Feature</th><th>zkSync Lite (formerly zkSync 1.0)</th><th data-hidden>zkSync Era (formerly zkSync 2.0)</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>zkSync Lite is a trustless protocol for scalable low-cost payments on Ethereum, powered by zkRollup technology.</td><td>zkSync Era is a Zero Knowledge (ZK) rollup that supports generalized EVM compatibility for the Ethereum blockchain.</td></tr><tr><td><strong>Mainnet</strong></td><td><a href="https://blog.matter-labs.io/zksync-is-live-bringing-trustless-scalable-payments-to-ethereum-9c634b3e6823">June 18, 2020</a></td><td><a href="https://blog.matter-labs.io/gm-zkevm-171b12a26b36">March 24, 2023</a></td></tr><tr><td><strong>Purpose</strong></td><td>Payments, NFTs, Atomic Swaps</td><td>Universal</td></tr><tr><td><strong>Smart Contracts</strong></td><td>❌</td><td>✅</td></tr></tbody></table>

1. Add zkSync Era Mainnet or zkSync Era Testnet to your network list. You can find the links and details in our [documentation](https://era.zksync.io/docs/dev/fundamentals/interacting.html#connecting-to-zksync-era-on-metamask).
2. Bridge funds from Ethereum to zkSync Era at [https://bridge.zksync.io/](https://bridge.zksync.io/)
3. You can find Live applications on: [https://ecosystem.zksync.io/](https://ecosystem.zksync.io/)
You can learn more about zkSync Lite on [L2beat.com](https://l2beat.com/scaling/projects/zksync-lite).

⚠️For now, there is no bridge from zkSync Lite to zkSync Era. We will communicate any updates on this matter. Learn more [here](https://github.com/zkSync-Community-Hub/zksync-community/blob/f53466f90a17e7ee44f73bbf6b7b06b697848e84/Content/zkSync%20Lite/How%20do%20I%20migrate%20funds%20from%20zkSync%20Lite%20to%20zkSync%20Era%3F.md)
## How do fees work on zkSync?

#### Developers
Fees depend on Ethereum Layer 1 (L1) gas prices because with every zkSync Layer 2 (L2) transaction, we post related data on Layer 1 — this allows us to inherit the security of Ethereum.
### zkSync Era
In zkSync Era, the way fees are calculated is similar to Ethereum. Fees are needed for:

* You can find all your necessary resources in our [documentation](https://era.zksync.io/docs/).
* Ask questions to the community in our experimental [Github Discussions](https://github.com/zkSync-Community-Hub/zkync-developers/discussions/categories/announcements).
* Talk to other devs on [Discord](https://join.zksync.dev/) in 🖥│dev-general and make sure to get your @Developer role in 👥│roles to be up to date with all developer updates.
1. The work done by the protocol (computational cost).
2. The cost to put data on-chain (publishing data).
3. The effects of storage.
4. Putting data on the L1 chain (publishing to L1).
5. Creating proofs (proof generation).

## zkSync Lite
The fees for putting data on the L1 chain can change a lot due to volatile L1 gas prices. Because of this, the fees on a L2 will rise and fall with L1 fees.

### What is zkSync Lite?
## How long are withdrawal times?

<table><thead><tr><th>Feature</th><th>zkSync Lite (formerly zkSync 1.0)</th><th data-hidden>zkSync Era (formerly zkSync 2.0)</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>zkSync Lite is a trustless protocol for scalable low-cost payments on Ethereum, powered by zkRollup technology.</td><td>zkSync Era is a Zero Knowledge (ZK) rollup that supports generalized EVM compatibility for the Ethereum blockchain.</td></tr><tr><td><strong>Mainnet</strong></td><td><a href="https://blog.matter-labs.io/zksync-is-live-bringing-trustless-scalable-payments-to-ethereum-9c634b3e6823">June 18, 2020</a></td><td><a href="https://blog.matter-labs.io/gm-zkevm-171b12a26b36">March 24, 2023</a></td></tr><tr><td><strong>Purpose</strong></td><td>Payments, NFTs, Atomic Swaps</td><td>Universal</td></tr><tr><td><strong>Smart Contracts</strong></td><td>❌</td><td>✅</td></tr></tbody></table>
### zkSync Era
There is currently a 24 hour delay on withdrawals from zkSync Era mainnet to Ethereum L1. You can learn more about the process and reason in our latest [blog post](https://blog.matter-labs.io/securing-zksync-era-execution-delay-ee32b11d6f9)

You can learn more about zkSync Lite on [L2beat.com](https://l2beat.com/scaling/projects/zksync-lite).
Once the transaction is ["Committed"](faq.md#what-do-the-statuses-mean-ofa-transaction) the 24 hour delay starts.

You can check our tutorial for ["How to Withrdraw"]() for details on how to check if your transaction is past the withdrawal delay.

### zkSync Lite
At peak usage of zkSync, the withdrawal time is about 15 minutes. During lower use, it can take up to 10 hours. Currently, withdrawal times depend on the activity on zkSync, when we finalize blocks, and submit them to L1.

## Where can I see my funds after a withdrawal?

### zkSync Era
You can find fully verified withdrawals on [Etherscan](https://etherscan.io/) in the "**Internal Transactions**" tab*. You will have a transaction from the [`zkSync Era:Diamond Proxy` contract](https://etherscan.io/address/0x32400084c286cf3e17e7b677ea9583e60a000324).

\* If you withdrew a token other than ETH then you would find the transaction in the "**Token Transfers(ERC-20)**" tab.

### zkSync Lite
You can find fully verified withdrawals on [Etherscan](https://etherscan.io/) in the "**Internal Transactions**" tab*. You will have a transaction from the [`zkSync` contract](https://etherscan.io/address/0xabea9132b05a70803a4e85094fd0e1800777fbef#tokentxns).


\* If you withdrew a token other than ETH then you would find the transaction in the "**Token Transfers(ERC-20)**" tab.
## Can I send funds to or from a Centralized Exchange to zkSync?

### zkSync Era
No you cannot send funds to or from a Centralized Exchange (CEX) until the network is supported by the exchange. To prevent loss of funds, please check with the specific exchange for their policies and support before sending funds to or from zkSync Era to a CEX.

Until there is more CEX support for zkSync Era you can use some third-party bridges to deposit funds from a CEX to zkSync. See our [Ecosystem page](https://ecosystem.zksync.io/) for a list of bridges.

### zkSync Lite
Yes, you can send funds to and from a Centralized Exchange (CEX) to zkSync as long as the CEX supports the zkSync network. However, always ensure to check with the specific exchange for their policies and support. Some third-party bridges allow you to deposit funds from a CEX to zkSync. See our [Ecosystem page](https://ecosystem.zksync.io/) for a list of bridges.

## What is the account activation fee on zkSync Lite?
The account activation fee is a one-time fee to register your account with zkSync. This fee only applies to your first zkSync transaction on zkSync Lite and **does not apply to zkSync Era**.

On a deeper level, to be better suited for zero-knowledge proofs, zkSync accounts are defined over a different elliptic curve than Ethereum's. Activating your account generates and publishes a new private-public key pair over this curve associated with your Ethereum address.

The registration process happens directly on the Ethereum smart contract and therefore it is an L1 transaction, so the activation fee is to pay the Ethereum miners and not zkSync validators.

ERC-1271 compatible wallets (like Argent) increase this one-time fee because of higher interaction with the zkSync smart contract. This operation is cheaper if you are using a CREATE2 smart-contract-based wallet.

## What do the statuses mean of a transaction?

### zkSync Era
- **Pending**: the zkSync server has received and processed the transaction. Unless it is a withdrawal, it is ready for immediate use.
- **Included**: the transaction has been added to L1 batch and processed in era.
- **Verified**: the transaction’s batch has been proven and verified on the L1 smart contract.
- **Failed**: the funds for the transaction are not sent and remain in the sender’s wallet, but the gas fee will still be deducted.

### zkSync Lite
- **Initiated**: the zkSync server has received and processed the transaction. Unless it is a withdrawal, it is ready for immediate use.
- **Committed**: the transaction appears in a block that is committed to the L1 smart contract.
- **Verified**: the transaction’s block has been proven and verified on the L1 smart contract.

## How long does a deposit take?
A deposit to zkSync is a transaction from Ethereum to zkSync, and it typically takes about 5 minutes or about 10 block confirmations on Ethereum L1. The time can vary based on the congestion of the Ethereum network and the L1 gas fee set for the transaction.

## Is there a token for zkSync?
No

## Can I run a validator or a node for zkSync?

### zkSync Era
Not at the moment, but the network is expected to move towards a more decentralized model, allowing users to run their own validators or nodes in the future.

### zkSync Lite
No

## Is there a list of projects in the zkSync Ecosystem?

Yes, [https://ecosystem.zksync.io/](https://ecosystem.zksync.io/)

## Why don't I see my funds on my wallet?

### zkSync Era
For zkSync Era make sure you are connected to the zkSync Era mainnet. If you still don't see your funds, you might need to change display settings to either show or add custom tokens on your wallet interface. You can check MetaMask's ["How to disploy tokens in MetaMask](https://support.metamask.io/hc/en-us/articles/360015489031-How-to-display-tokens-in-MetaMask) for more details.

### zkSync Lite
You will not see your zkSync Lite funds on your wallet unless it is integrated with zkSync Lite like [Argent](https://www.argent.xyz/).
</br>Since you connect to zkSync Lite via Ethereum mainnet your wallet will show you your funds on Ethereum and you can check your zkSync Lite funds on [the zkSync Lite wallet](https://lite.zksync.io/) or [the zkSync Lite block explorer](https://zkscan.io/).

0 comments on commit f960b91

Please sign in to comment.