diff --git a/testgen/generators.go b/testgen/generators.go index 4b3b2f3..058dbcb 100644 --- a/testgen/generators.go +++ b/testgen/generators.go @@ -89,6 +89,7 @@ var AllMethods = []MethodTests{ DebugGetRawBlock, DebugGetRawReceipts, DebugGetRawTransaction, + EthBlobBaseFee, // -- header requests are not in the spec yet // EthGetHeaderByNumber, @@ -1576,6 +1577,21 @@ var EthMaxPriorityFeePerGas = MethodTests{ }, } +var EthBlobBaseFee = MethodTests{ + "eth_blobBaseFee", + []Test{ + { + Name: "get-current-blobfee", + About: "gets the current blob fee in wei", + Run: func(ctx context.Context, t *T) error { + var result hexutil.Big + err := t.rpc.CallContext(ctx, &result, "eth_blobBaseFee") + return err + }, + }, + }, +} + // EthFeeHistory stores a list of all tests against the method. var EthFeeHistory = MethodTests{ "eth_feeHistory",