Skip to content

Commit

Permalink
chore: update docs with latest upstream PR (#67)
Browse files Browse the repository at this point in the history
- update docs to latest
  • Loading branch information
dutterbutter authored May 16, 2024
1 parent 4b42f8b commit 1b2334d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
16 changes: 13 additions & 3 deletions content/00.build/70.api-reference/35.ethereum-rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@ title: Ethereum JSON-RPC API
description: JSON-RPC API methods for the eth_ namespace for zkSync Era.
---

ZKsync Era supports the standard [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/). With the
exception of `eth_sendTransaction` which is intentionally not
supported.
ZKsync Era supports the standard [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/).

## Important Differences for Developers

When working with zkSync, there are specific differences you should be aware of:

1. **Block Data Retrieval Methods**:
- Methods that return data about a block, such as `eth_getBlockByHash`, `eth_getBlockByNumber`, and 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 because zkSync’s L2 blocks do not include the concept of a state root; only L1 batches have this concept.

2. **Unsupported Method**:
- The method `eth_sendTransaction` is intentionally not supported in zkSync.

## `eth_chainId`

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"homepage": "https://zksync.io",
"devDependencies": {
"@nuxt/devtools": "^1.1.5",
"@nuxtjs/seo": "^2.0.0-rc.10",
"@types/bun": "^1.0.8",
"@vue/test-utils": "^2.4.5",
"cspell": "^8.6.0",
Expand Down

0 comments on commit 1b2334d

Please sign in to comment.