From 17e6757daa8104e072c66ea5405acede3969d826 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Tue, 26 Aug 2025 15:09:41 +0800 Subject: [PATCH] ethclient: acquire the rpc.Client #27246 (#1379) Signed-off-by: jsvisa Co-authored-by: Delweng --- ethclient/ethclient.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index c7ebf11d13..ffacd61a34 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -61,6 +61,11 @@ func (ec *Client) Close() { ec.c.Close() } +// Client gets the underlying RPC client. +func (ec *Client) Client() *rpc.Client { + return ec.c +} + // Blockchain Access // ChainID retrieves the current chain ID for transaction replay protection.