internal/ethapi: add doc for blob base fee method

This commit is contained in:
lightclient 2024-03-07 07:23:13 -07:00 committed by Felix Lange
parent 5fb6b036a5
commit 396424c795

View file

@ -136,6 +136,7 @@ func (s *EthereumAPI) FeeHistory(ctx context.Context, blockCount math.HexOrDecim
return results, nil return results, nil
} }
// BlobBaseFee returns the base fee for blob gas at the current head.
func (s *EthereumAPI) BlobBaseFee(ctx context.Context) (*hexutil.Big, error) { func (s *EthereumAPI) BlobBaseFee(ctx context.Context) (*hexutil.Big, error) {
blobBaseFee, err := s.b.BlobBaseFee(ctx) blobBaseFee, err := s.b.BlobBaseFee(ctx)
return (*hexutil.Big)(blobBaseFee), err return (*hexutil.Big)(blobBaseFee), err