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

Commit

Permalink
docs(api): add warning about zero values for some block related metho…
Browse files Browse the repository at this point in the history
…ds (#1078)
  • Loading branch information
AnastasiiaVashchuk authored May 16, 2024
1 parent f80f1c9 commit 48965c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/build/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ zkSync Era supports the standard [Ethereum JSON-RPC API](https://ethereum.org/en
- Read the documentation on [EIP-712 transactions](../zk-stack/concepts/transaction-lifecycle.md#eip-712-0x71) for more information.
:::

:::warning

However, there are specific differences that you must be aware of.
Methods that return data about a block (such as `eth_getBlockByHash`, `eth_getBlockByNumber`, or Geth’s pubsub API `eth_subscribe` with the `newHeads` parameter) do not provide the actual `receiptsRoot`, `transactionsRoot`, and `stateRoot` values. Instead, these fields contain zero values as zkSync’s L2 blocks do not contain the concept of a state root, only L1 batches have it.
:::

## RPC endpoint URLs

:::warning Rate Limits
Expand Down

0 comments on commit 48965c5

Please sign in to comment.