Skip to content

Commit

Permalink
feat: support BalanceAt (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanguyenk authored Feb 28, 2024
1 parent a3e55e3 commit 4dfb2fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ func (c *Client) GetBlockNumber(ctx context.Context) (uint64, error) {
return c.ethClient.BlockNumber(ctx)
}

func (c *Client) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) {
return c.ethClient.BalanceAt(ctx, account, blockNumber)
}

func (c *Client) R() *Request {
r := &Request{
client: c,
Expand Down

0 comments on commit 4dfb2fa

Please sign in to comment.