Skip to content

Commit aa47d01

Browse files
committed
internal/ethapi: add document for DoEstimateGas
Signed-off-by: jsvisa <[email protected]>
1 parent 21dffcb commit aa47d01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/ethapi/api.go

+2
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,8 @@ func (s *BlockChainAPI) Call(ctx context.Context, args TransactionArgs, blockNrO
11341134
return result.Return(), result.Err
11351135
}
11361136

1137+
// DoEstimateGas estimates the gas needed to execute a specific transaction.
1138+
// Note, the flag noBaseFee indicating whether to skip the base fee check
11371139
func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNrOrHash rpc.BlockNumberOrHash, gasCap uint64, noBaseFee bool) (hexutil.Uint64, error) {
11381140
// Binary search the gas requirement, as it may be higher than the amount used
11391141
var (

0 commit comments

Comments
 (0)