mine

Documentation for eth_defi.provider.anvil.mine function.

mine(web3, timestamp=None, increase_timestamp=0)

Call evm_setNextBlockTimestamp on Anvil.

Mine blocks, optionally set the time of the new block.

Parameters
  • web3 (web3.main.Web3) – Web3 connection connected to Anvil JSON-RPC.

  • timestamp (Optional[int]) – Jump to absolute future timestamp.

  • increase_timestamp (float) – How many seconds we leap to the future.

Return type

None