Skip to content

Commit

Permalink
Merge pull request #1 from KyberNetwork/feat/add-suggest-gas-price
Browse files Browse the repository at this point in the history
feat: add SuggestGasPrice
  • Loading branch information
0xh9n authored Apr 25, 2023
2 parents 28e0c43 + 9aaf61b commit 5f0b98d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package ethrpc

import (
"context"
"math/big"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5f0b98d

Please sign in to comment.