This proposal aims to allow developers to use a custom rpc.Client without the need to re-implement all the methods of ethclient.Client. Recently, I required this functionality to automatically intercept all rpc.CallContext calls and add custom features, without having to replicate the same implementation across all functions called by the client.
Implementation
To achieve this, I plan to create an interface that will be used within the ethclient.Client struct. I will handle the implementation myself.
If you have any further requests or suggestions, please feel free to reach out.
Rationale
This proposal aims to allow developers to use a custom
rpc.Client
without the need to re-implement all the methods ofethclient.Client
. Recently, I required this functionality to automatically intercept allrpc.CallContext
calls and add custom features, without having to replicate the same implementation across all functions called by the client.Implementation
To achieve this, I plan to create an interface that will be used within the
ethclient.Client
struct. I will handle the implementation myself.If you have any further requests or suggestions, please feel free to reach out.