You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/sdk-reference/core/rpc.md
+48-2Lines changed: 48 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# zks_ RPC
2
2
3
-
Public ZKsync `zks_*` RPC methods exposed on the adapters via `client.zks` (Bridgehub address, L2→L1 log proofs, receipts with `l2ToL1Logs`).
3
+
Public ZKsync `zks_*` RPC methods exposed on the adapters via `client.zks` (Bridgehub address, Bytecode Supplier address, block metadata, L2→L1 log proofs, receipts with `l2ToL1Logs`).
4
4
5
5
## Standard Ethereum RPC (`eth_*`)
6
6
@@ -13,9 +13,11 @@ For standard Ethereum JSON-RPC (e.g., `eth_call`, `eth_getLogs`, `eth_getBalance
> **Standard `eth_*` RPC** should always be performed through your chosen base library (**ethers** or **viem**).
104
-
> The SDK only adds **ZKsync-specific** RPC methods via `client.zks.*` (e.g. `getBridgehubAddress`, `getL2ToL1LogProof`, `getGenesis`).
104
+
> The SDK only adds **ZKsync-specific** RPC methods via `client.zks.*` (e.g. `getBridgehubAddress`, `getBytecodeSupplierAddress`, `getBlockMetadataByNumber`, `getGenesis`).
105
105
106
106
* Every resource method has a **`try*` variant** (e.g. `tryCreate`) that returns a result object instead of throwing.
107
107
When errors occur, the SDK throws **`ZKsyncError`** with a stable, structured envelope (see [Error model](./core/errors.md)).
0 commit comments