Author

Topic: How do I know there is a new transaction? (Read 739 times)

newbie
Activity: 22
Merit: 0
October 24, 2011, 11:02:13 PM
#5
I used ListTransaction with Count = 10 and From = 3.But I still get the first 3 transactions.  How does it work?

I think this is a very common questions. Does anyone know how to list the transactions that have not checked?
hero member
Activity: 602
Merit: 502
October 20, 2011, 02:30:44 AM
#4
I am developing a program that monitors the transaction.
The first question is that how I know there is a new transcation? I can consider the command ListTranscation. However, there is a bit issue about this command I post in another thread. In short, I can't list transaction from all account by NOT provide account.
Even if it works for me. The API says:
listtransactions    [account] [count=10] [from=0]    Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided will return recent transaction from all accounts. 


 It returns up to [count] most recent transaction. How do I know how many transaction is new after I read last time? If I set count as 10, but there is 11 new transactions if I get busy, then I miss one. So I have to set count parameter an unreachable number, say 10000, and check it every second to make sure I never miss one transaction?


Or is there an alternative way to check new transaction?

In this forum section these sort of questions sometimes don't reach the right audience. If you don't get a good answer (or if you don't get out of the newbie status), you can always try to ask it at the Bitcoin Q&A
newbie
Activity: 12
Merit: 0
October 18, 2011, 11:06:12 PM
#3
You mean just use one single account?
legendary
Activity: 1050
Merit: 1000
You are WRONG!
October 18, 2011, 09:04:24 AM
#2
don't use accounts. use "" as account.
newbie
Activity: 12
Merit: 0
October 18, 2011, 09:01:48 AM
#1
I am developing a program that monitors the transaction.
The first question is that how I know there is a new transcation? I can consider the command ListTranscation. However, there is a bit issue about this command I post in another thread. In short, I can't list transaction from all account by NOT provide account.
Even if it works for me. The API says:
listtransactions    [account] [count=10] [from=0]    Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided will return recent transaction from all accounts. 


 It returns up to [count] most recent transaction. How do I know how many transaction is new after I read last time? If I set count as 10, but there is 11 new transactions if I get busy, then I miss one. So I have to set count parameter an unreachable number, say 10000, and check it every second to make sure I never miss one transaction?


Or is there an alternative way to check new transaction?
Jump to: