Skip to content
On this page

setNextBlockBaseFeePerGas

Sets the next block's base fee per gas.

Usage

ts
import { testClient } from '.'
 
await testClient.setNextBlockBaseFeePerGas({ 
  baseFeePerGas: parseGwei('20')
})

Parameters

baseFeePerGas

  • Type: bigint

Base fee per gas.

ts
await testClient.setNextBlockBaseFeePerGas({
  baseFeePerGas: parseGwei('30') 
})

Released under the MIT License.