API Reference
Overview
The API exposed by the EN is designed to be Web3-compliant. Any deviation from the Ethereum behavior is likely unintended, and we encourage users to report such discrepancies.
`eth_` Namespace
Data getters in this namespace operate in the L2 domain. They deal with L2 block numbers, check balances in L2, and more.
Method | Notes |
---|---|
| |
| |
| |
| |
| |
| Maximum amount of installed filters is configurable |
| Same as above |
| Same as above |
| |
| Maximum amount of returned entities can be configured |
| Same as above |
| Same as above |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| EN is considered synced if it's less than 11 blocks behind the main node. |
| Always returns a zero address |
| Always returns an empty list |
| Always returns an empty list |
| Always returns zero |
| Always returns zero |
| Always returns zero |
| Always returns false |
PubSub
This is exclusively available on the WebSocket servers.
Method | Notes |
---|---|
| Maximum amount of subscriptions is configurable |
|
net_
Namespace
net_
NamespaceMethod | Notes |
---|---|
| |
| Always returns 0 |
| Always returns false |
web3_
Namespace
web3_
NamespaceMethod | Notes |
---|---|
|
debug_
Namespace**
debug_
Namespace**This namespace provides a set of non-standard RPC methods for developers to inspect and debug calls and transactions. By default, this namespace is disabled but can be activated using the EN_API_NAMESPACES
setting. Please refer to the configuration section for more details.;
Method | Notes |
---|---|
| |
| |
| |
|
zks_
Namespace
zks_
NamespaceThis namespace holds rollup-specific extensions to the Web3 API. Only the methods documented are deemed public. Other methods in this namespace, though exposed, are not stable and may change without notice.
Method | Notes |
---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
en
Namespace
en
NamespaceThis namespace includes methods that external nodes call on the main node during syncing. If this namespace is active, other ENs can sync using this node.
Reference
Last updated