Skip to content

How to check if my wallet has no pending Tx before creating a new Tx? #3470

Answered by ricmoo
tsarbuig asked this question in Q&A
Discussion options

You must be logged in to vote

There is no feature in normal Ethereum nodes for getPendingTransaction (that I know of).

This method is an ok approximation. Keep in mind the network is eventually consistent, so it’s quite possible that the mempool you are querying does not have all the transactions from your account, either because it doesn’t meet its retention rules or because it hasn’t received it yet.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tsarbuig
Comment options

Answer selected by tsarbuig
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3467 on October 26, 2022 16:06.