Next-block

The next-block tool lets you to send transactions as soon as a certain values can be read on the blockchain.

You can for example trigger a transaction as soon as a certain contract function reads a certain value.

The simplest way to use next-block is to only check the tx simulation box and hit Schedule.

With this setting, Kekotron will do a simulation of your transaction each time a new block is found. As soon as the transaction is expected to succeed, it will be sent out. The transaction will not be sent as long as it is expected to revert.

This comes in useful in situations where a transaction depends on trading being open on a contract, or a max transaction value being removed.


In this example we instead input the contract address we want to monitor, the method id(selector), and the read value. Since this is the isTradingActive function, we are looking for a boolean value True, which in hex equates to 0x0000000000000000000000000000000000000000000000 000000000000000001.

Once trading is active, your transaction will be sent out with your gas settings.

Note that in order to be sure to achieve inclusion in the next available block, your gas needs to be set appropriately, {auto} will not always include you directly in the next block.

Last updated