I need a little to help with getHistory method there is a way to filter by date? I would like for exemple check if there any transaction pending before mine.
To check if there are any relevant transactions in the mempool I assume you would either need to run your own node or use a service like Blocknative and then use this information to trigger an autotask (webhook interface for autotasks was in the Coming up section of Defender Release 2020W47).