RPC daemon
Remote Procedure Call
Last updated
Was this helpful?
Remote Procedure Call
Last updated
Was this helpful?
The RPC daemon is a crucial component of Erigon, enabling JSON remote procedure calls and providing access to various APIs.
This document provides guidelines for understanding and using the various RPC methods available in Erigon.
Compatibility with eth
namespace
Erigon aims to be compatible with all standard Ethereum JSON-RPC API methods, as described . See also for examples.
Compatibility with standard Geth methods
All methods featured by Geth including , , TLS, , etc..., are supported by Erigon.
Otterscan Methods (ots_
)
In addition to the standard Geth methods, Erigon includes RPC methods prefixed with ots_
for Otterscan. These are specific to the Otterscan functionality integrated with Erigon. See more details .
Erigon Extensions (erigon_
)
Erigon introduces some small extensions to the Geth API, denoted by the erigon_
prefix aimed to enhance the functionality, see more details about implementation status.
gRPC API
Erigon also exposes a gRPC API for lower-level data access. This is primarily used by Erigon’s components when they are deployed separately as independent processes (either on the same or different servers).
This gRPC API is also accessible to users. For more information, visit the .
Trace Module (trace_
)
Erigon includes , which originates from OpenEthereum. This module provides additional functionality related to tracing transactions and state changes, which is valuable for advanced debugging and analysis.
Introduction: An overview of the RPC daemon, its benefits, and how it integrates with Erigon.
Getting Started: Step-by-step guides for running the RPC daemon locally and remotely, including configuration options and command-line flags.
Healthcheck: Information on performing health checks using POST requests or GET requests with custom headers.
Testing and debugging: Examples of testing the RPC daemon using curl
commands and Postman, debugging.
FAQ: Frequently asked questions and answers covering topics such as prune options, RPC implementation status, and securing communication between the RPC daemon and Erigon instance.
For Developers: Resources for developers, including code generation and information on working with the RPC daemon.
Relations between prune options and RPC methods: Explains how prune options affect RPC methods.
RPC Implementation Status: Provides a table showing the current implementation status of Erigon's RPC daemon.
Securing the communication between RPC daemon and Erigon instance via TLS and authentication: Outlines the steps to secure communication between the RPC daemon and Erigon instance.
Ethstats: Describes how to run ethstats with the RPC daemon.
Allowing only specific methods (Allowlist): Explains how to restrict access to specific RPC methods.
For a comprehensive understanding of the RPC daemon's functionality, configuration, and usage, please refer to * (also contained in your locally compiled Erigon folder at /cmd/rpcdaemon
) which covers the following key topics: