ethclient: update BlobBaseFee method documentation for clarity

This commit is contained in:
islishude 2025-03-01 00:38:10 +08:00
parent 916b67d8f3
commit ea4ead8f8f

View file

@ -598,7 +598,7 @@ func (ec *Client) SuggestGasTipCap(ctx context.Context) (*big.Int, error) {
return (*big.Int)(&hex), nil return (*big.Int)(&hex), nil
} }
// BlobBaseFee returns the base fee per blob gas in wei. // BlobBaseFee retrieves the current blob base fee.
func (ec *Client) BlobBaseFee(ctx context.Context) (*big.Int, error) { func (ec *Client) BlobBaseFee(ctx context.Context) (*big.Int, error) {
var hex hexutil.Big var hex hexutil.Big
if err := ec.c.CallContext(ctx, &hex, "eth_blobBaseFee"); err != nil { if err := ec.c.CallContext(ctx, &hex, "eth_blobBaseFee"); err != nil {