Hi marcus03 - or any of you NXT client gurus -
I am trying to reconcile the two concepts of regular polling and specific singular user input.
I have an (extremely messy) PyQt4 client that can send queries to my raspi (or whatever node I enter).
To look at the account, I have some lineEdits for server location. account number passphrase, etc, when I enter the info there, I can shoot a single query and get eg the balance in the account back.
This seems 'single poll' to me. Most user input would be 'single poll' (eg sendMoney
once only PLZ!), but also message, etc.
On the other hand, I may want to keep ALL the staus information about the system current. This is where I use 'continous poll'
In my client, I have hooked up a QTimer, that keeps polling the server in 1s intervals. This works nicely, and so far so good.
What I haven't figured out yet: WHICH of the api calls do you use to 'contPoll' the server?
I am using 'getState', which gives interesting info, but obviously, there is more relevant info to be had.
What are you guys using in your clients? Looking at the screens, there seems to be quite something.
Please drop me a few hints - I have listed all API calls I could find below from the wiki. Are any missing?
CHEERS!
1 getAccountId - secretPhrase
2 getAccountId - PublicKey
3 getUnconfirmedTransactionIds
4 getBalance
5 assignAlias
6 getAliasURI
7 getAliasIds
8 listAccountAliases
9 getBlock
10 issueAsset
11 getAssetIds
12 getAsset
13 transferAsset
14 placeBidOrder / placeAskOrder
15 getBidOrderIds / getAskOrderIds
16 getAskOrder / getBidOrder
17 cancelAskOrder / cancelBidOrder
18 getConstants
19 getMyInfo
20 getPeer
21 getPeers
22 getState
23 getTime
24 decodeHallmark
25 markHost
26 decodeToken
27 broadcastTransaction
28 getAccountTransactionIds
29 getTransaction
30 getTransactionBytes
31 sendMoney
-- undocumented in wiki
32 ? getGuaranteedBalance
33 ? sendMessage