diff --git a/client.go b/client.go index ece05d1..93505e5 100644 --- a/client.go +++ b/client.go @@ -1,6 +1,9 @@ package ethrpc import ( + "context" + "math/big" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" @@ -38,6 +41,10 @@ func (c *Client) SetMulticallContract(multiCallContract common.Address) *Client return c } +func (c *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error) { + return c.ethClient.SuggestGasPrice(ctx) +} + func (c *Client) R() *Request { r := &Request{ client: c,