Skip to content

setNextBlockBaseFeePerGas

Sets the next block's base fee per gas.

Usage

import { parseGwei } from 'viem'
import { testClient } from './client'
 
await testClient.setNextBlockBaseFeePerGas({ 
  baseFeePerGas: parseGwei('20')
})

Parameters

baseFeePerGas

  • Type: bigint

Base fee per gas.

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