Access to BeaconConsensusEngine API #14241
Labels
A-sdk
Related to reth's use as a library
C-enhancement
New feature or request
S-needs-design
This issue requires design work to think about how it would best be accomplished
Describe the feature
Description
Right now it's possible to get access to RethAPi from the code, as in custom-dev-node example
However, it's not possible to do the same for the EngineApi, as far as I could find.
E.g. I cannot (easily?) get access to EthBeaconConsensus.
The reason I'd like to have this is to be able to send consensus messages directly to the Reth node from the code.
Something like this:
Example
Perhaps it's easiest approach to demonstrate via an example.
But please note that I'm not advocating this as a "solution", just showcasing a local workaround I did, as an example.
I've modified the
DefaultNodeLauncher
to look like this:Injection of
tx_rx_consensus
allows me to get access to the consensus engine, which is exactly what I want.Request
If this is already possible, I was not able to find it.
If not, it'd be great if this could be added!
I don't mind trying to make a PR for this.
Additional context
No response
The text was updated successfully, but these errors were encountered: