When check for mine I don’t pull from the pending pool (I didn’t even know there was such a thing!), I use the algosdk’s built-in method waitForConfirmation() that doesn’t return until either the transaction is confirmed, or it times out (you can tell it to wait for a number of blocks before giving up): js-algorand-sdk/wait.ts at 9dd99e96ede0bb945605425ab0a194c84ee85086 · algorand/js-algorand-sdk · GitHub