How to check transaction drop from mempool
To determine whether a transaction is in the mempool, we use the get_transactionByHash method to check if the response is null. If the response is null, we assume the transaction has been dropped from the mempool and proceed to execute send_rawTransaction.
However, we are encountering an issue where executing send_rawTransaction when get_transactionByHash returns a null response results in an "already known" error.
Could it be that a null response from the get_transactionByHash method does not necessarily mean the transaction has been dropped from the mempool? Additionally, if there are other methods or best practices to determine whether a transaction is in the mempool, could you please provide that information?
Your insights on this matter would be greatly appreciated.
Thank you for your support.
Best regards,