-
Hi there, I’m working on a project and I want to create a proxy RPC that will forward requests to the main reth RPC server. Additionally, I would like to have the ability to add custom methods to this proxy server for extending functionality. Could you suggest the best way to implement such an architecture with reth? Are there any recommendations for extending the API or interfaces to include custom methods in the proxy structure? I would appreciate any tips or examples on how to achieve this! Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
for extending the node with additional rpc endpoints you can take a look at this examples for the proxy server this would just be a matter of forwarding the request for you separate server to the reth HTTP address? |
Beta Was this translation helpful? Give feedback.
for extending the node with additional rpc endpoints you can take a look at this examples
reth/examples/node-custom-rpc/src/main.rs
Line 9 in bbc7dd9
for the proxy server this would just be a matter of forwarding the request for you separate server to the reth HTTP address?
pretty sure axum has some examples for that