Pages:
Author

Topic: [Nxt] API of Nxt - page 15. (Read 37336 times)

legendary
Activity: 1176
Merit: 1134
December 26, 2013, 01: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
legendary
Activity: 2142
Merit: 1010
Newbie
December 25, 2013, 11:56:10 AM
How do I get a list of transactions associated with a specific account? (specifically incoming money transactions)

http://localhost:7874/nxt?requestType=getAccountTransactionIds&account=123×tamp=0
sr. member
Activity: 308
Merit: 250
December 25, 2013, 11:15:27 AM
How do I get a list of transactions associated with a specific account? (specifically incoming money transactions)
member
Activity: 70
Merit: 10
December 25, 2013, 09:36:06 AM

listAccountAliases&account

@CfB, could you please tell me which api should I call to list all my alias names? I know the account. Thanks.

http://localhost:7874/nxt?requestType=listAccountAliases&account=123
legendary
Activity: 2142
Merit: 1010
Newbie
December 25, 2013, 06:41:46 AM
would you please add an entry of "numberOfPeers" to the output of getState request?

Ok
full member
Activity: 143
Merit: 100
December 24, 2013, 09:50:57 PM
would you please add an entry of "numberOfPeers" to the output of getState request?
legendary
Activity: 2142
Merit: 1010
Newbie
December 20, 2013, 07:20:45 AM
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.
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 20, 2013, 07:15:40 AM
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!

legendary
Activity: 2142
Merit: 1010
Newbie
December 20, 2013, 12: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)
legendary
Activity: 2142
Merit: 1010
Newbie
December 20, 2013, 12: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.
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 19, 2013, 09:05:43 PM
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







full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 19, 2013, 08:57:47 PM
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?

legendary
Activity: 2142
Merit: 1010
Newbie
December 19, 2013, 07:19:42 AM
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.
hero member
Activity: 566
Merit: 500
December 19, 2013, 07:14:06 AM
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?
legendary
Activity: 2142
Merit: 1010
Newbie
December 18, 2013, 07:24:54 AM
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.
hero member
Activity: 566
Merit: 500
December 18, 2013, 07:18:10 AM
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.
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 17, 2013, 02:35:43 PM
I can scan. Where are new accounts recorded?

Here's the thing.  CfB may correct me, but I suspect that all Nxt accounts already "exist", in that the network has to treat ANY public key as a valid account.  The account only appears in the blockchain once a deposit is made to a given account number.

There's a zen koan in here somewhere... if a tree falls in the forest....

Quote
UPDATE:  If you look at the web page for the Blockchain Explorer, you can see that there is an "accounts" field on the "Node" line near the top of the window.  My gut says this field implies there are 1,499 accounts represented in the blockchain right now.

All of those accounts have non-zero balances too.

Ok, I get it! Thanks.
full member
Activity: 210
Merit: 100
December 17, 2013, 02:24:32 PM
#99
I can scan. Where are new accounts recorded?

Here's the thing.  CfB may correct me, but I suspect that all Nxt accounts already "exist", in that the network has to treat ANY public key as a valid account.  The account only appears in the blockchain once a deposit is made to a given account number.

The way to scan for accounts, then, would be to scan the blockchain for transactions, and pull the account numbers involved with those transactions.  Once you've scanned up to the latest block, you would only have to update your list with "new account numbers appearing since the last scan", in subsequent new blocks.

Gosh, I hope I'm right Wink


UPDATE:  If you look at the web page for the Blockchain Explorer, you can see that there is an "accounts" field on the "Node" line near the top of the window.  My gut says this field implies there are 1,499 accounts represented in the blockchain right now.
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 17, 2013, 02:08:12 PM
#98
Is there a way to get a list of all the accounts?

Thanks!

Yes, this can be done via blockchain scanning. Smiley

Let me know if u need a special API call for that.

I can scan. Where are new accounts recorded?
legendary
Activity: 2142
Merit: 1010
Newbie
December 17, 2013, 02:02:38 PM
#97
Is there a way to get a list of all the accounts?

Thanks!

Yes, this can be done via blockchain scanning. Smiley

Let me know if u need a special API call for that.
Pages:
Jump to: