ethclient: acquire the rpc.Client #27246 (#1379)

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
This commit is contained in:
Daniel Liu 2025-08-26 15:09:41 +08:00 committed by GitHub
parent 6f36533962
commit 17e6757daa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.