This project aims to develop APIs that provide detailed reward data for Ethereum validators. The APIs will allow clients to access information regarding the amount of rewards earned for their duties and will enhance transparency in the consensus process. Prior to the development of this project, there was a lack of publicly available APIs that could accurately calculate the rewards paid to validators, hindering the development of essential tools such as block explorers and graphical user interfaces. By developing reliable and comprehensive APIs, this project aims to promote further research on the economic incentives of consensus networks and facilitate the design and operation of blockchain systems.
For more information, see the project document.
The Ethereum beacon-APIs are a collection of generic RESTful APIs designed to enhance interoperability across beacon node implementations. The new APIs for this project, attestation
, block
, and sync_committee
, can be found here.
As part of this project, these three APIs were designed to provide information on rewards earned by validators for their respective duties. These APIs enable clients to obtain detailed information on the rewards earned by each validator, enhancing transparency in the consensus process.
Now that the new APIs have been proposed and accepted, they were implemented in Lighthouse. This integration allows the APIs to be used by clients running Lighthouse and enables easy access to reward data for each validator.
In the following, we will showcase the three new APIs.
Query:
Output:
Query:
Output:
Query:
Output:
While this project has provided a set of APIs for obtaining reward data, there are still opportunities for further development and improvement. One potential next step would be to write tests for the new APIs to ensure their functionality and reliability. While the lack of tests was due to time constraints, implementing them in the future would enhance the overall quality and usability of the APIs.
Additionally, the new APIs will be implemented in other consensus clients beyond Lighthouse, further expanding their potential use cases.
The new APIs also have the potential to be used in blockchain explorers with beaconcha.in expressing interest in their implementation. This would allow platform users to obtain detailed information on the rewards earned by validators and other crucial data, providing greater insight into the consensus process.
In conclusion, the new APIs developed in this project have the potential to enhance transparency, accountability, and research capabilities.
NC:
Kevin: