GCInc.
|
|
December 18, 2013, 12:18:10 PM |
|
Is there a request can get all the transactions relate to a specific account?
No. This should be done via blockchain scanning. Why? It has been requested elsewhere (Android wallet coder) as well and would greatly simplify things.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 18, 2013, 12:24:54 PM |
|
Is there a request can get all the transactions relate to a specific account?
No. This should be done via blockchain scanning. Why? It has been requested elsewhere (Android wallet coder) as well and would greatly simplify things. Blockchain scanning consumes less resources on server side. Anyway, this API call will be added.
|
|
|
|
GCInc.
|
|
December 19, 2013, 12:14:06 PM |
|
Can we be sure that if we only once issue sendMoney and then an arbitrarily high number of broadcastTransaction, the payment is sent just once. So boradcastTransaction does not resend the payment under any circumstances regarldess of blockchain / client status?
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 19, 2013, 12:19:42 PM |
|
Can we be sure that if we only once issue sendMoney and then an arbitrarily high number of broadcastTransaction, the payment is sent just once. So boradcastTransaction does not resend the payment under any circumstances regarldess of blockchain / client status?
Yes, u can be sure. broadcastTransaction only broadcasts, it doesn't alter bytes in any way. Sequence of bytes determines transaction id. Every node rejects transactions with id that already exists in blockchain or unconfirmed transactions.
|
|
|
|
ferment
Full Member
Offline
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
|
|
December 20, 2013, 01:57:47 AM |
|
Are the APIs for the node in clearly separate classes from the web client?
For example, in addition to removing the HTML, could I also some class files?
|
|
|
|
ferment
Full Member
Offline
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
|
|
December 20, 2013, 02:05:43 AM |
|
Is this the current list of APIs?
sendMoney transactionBytes broadcastTransaction getPeers getPeer getState getBalance getMyInfo decodeHallmark decodeToken getBlock getTime getTransaction getConstants getUnconfirmedTransactionIds markHost (why not encodeHallmark?)
Are lock/unlock official APIs? Are they on the client and not the server?
Are there APIs for these? encoding a token generating an account number from a passphrase
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 20, 2013, 05:23:03 AM |
|
Are the APIs for the node in clearly separate classes from the web client?
For example, in addition to removing the HTML, could I also some class files?
No.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 20, 2013, 05:31:35 AM |
|
Is this the current list of APIs?
sendMoney transactionBytes broadcastTransaction getPeers getPeer getState getBalance getMyInfo decodeHallmark decodeToken getBlock getTime getTransaction getConstants getUnconfirmedTransactionIds markHost (why not encodeHallmark?)
Are lock/unlock official APIs? Are they on the client and not the server?
Are there APIs for these? encoding a token generating an account number from a passphrase
Current list:assignAlias broadcastTransaction decodeHallmark decodeToken cancelAskOrder cancelBidOrder getAccountId getAccountTransactionIds getAlias getAliasIds getAliasURI getAskOrder getAskOrderIds getAsset getAssetIds getBalance getBidOrder getBidOrderIds getBlock getConstants getMyInfo getPeer getPeers getState getTime getTransaction getTransactionBytes getUnconfirmedTransactionIds issueAsset markHost placeAskOrder placeBidOrder sendMoney transferAsset Lock/unlock is for client only, this is not API. Encoding a token - no such API Generating account id = getAccountId PS: This is complete list, some calls r absent in 0.3.20 and will be included into 0.4.0 (related to alias system) or disabled for the time being (related to asset exchange)
|
|
|
|
ferment
Full Member
Offline
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
|
|
December 20, 2013, 12:15:40 PM |
|
Thanks for posting the list! Encoding a token - no such API
Will this be added? If not, can you describe how it's done? Thanks!
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 20, 2013, 12:20:45 PM |
|
Thanks for posting the list! Encoding a token - no such API
Will this be added? If not, can you describe how it's done? Thanks! I'll add it.
|
|
|
|
newcn
|
|
December 25, 2013, 02:50:57 AM Last edit: December 25, 2013, 07:06:14 AM by newcn |
|
would you please add an entry of "numberOfPeers" to the output of getState request?
|
BTC:1NzzfeHCgN8fF6mSG1UeBFCVd2cxKbGyHk NXT:13187911577562526278
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 25, 2013, 11:41:46 AM |
|
would you please add an entry of "numberOfPeers" to the output of getState request?
Ok
|
|
|
|
OKNXT
Member
Offline
Activity: 70
Merit: 10
|
|
December 25, 2013, 02:36:06 PM |
|
listAccountAliases&account
|
|
|
|
wesleyh
|
|
December 25, 2013, 04:15:27 PM |
|
How do I get a list of transactions associated with a specific account? (specifically incoming money transactions)
|
|
|
|
|
jl777
Legendary
Offline
Activity: 1176
Merit: 1134
|
|
December 26, 2013, 06:16:55 AM |
|
Sorry for the newbie question, how do i associate a secret with an account?
Is the account a SHA 256 of a SHA 256 of a secret?
James
|
|
|
|
jl777
Legendary
Offline
Activity: 1176
Merit: 1134
|
|
December 26, 2013, 06:18:12 AM |
|
Also, how do you create an account via API?
James
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 26, 2013, 06:37:19 AM |
|
Sorry for the newbie question, how do i associate a secret with an account?
Is the account a SHA 256 of a SHA 256 of a secret?
James
Secret is mapped to account id via Curve25519(SHA256(secret))
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
December 26, 2013, 06:37:50 AM |
|
Also, how do you create an account via API?
James
Account is created by the very 1st transaction.
|
|
|
|
datz
Sr. Member
Offline
Activity: 295
Merit: 250
"to survive, we must live and fly"
|
|
December 26, 2013, 10:15:03 AM |
|
I have a NXT exchange built for you guys.
I have one missing link: generating NXT accounts from secrets.
I do curve25519hex(shaValue256(secretKey)) but this generates an alphanumerical hex, not a pure numerical account prevalent in NXT.
How do I generate accounts?
|
|
|
|
|