Bitcoin Forum
April 19, 2024, 11:27:28 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »  All
  Print  
Author Topic: [Nxt] API of Nxt  (Read 37212 times)
GCInc.
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


View Profile WWW
December 18, 2013, 12:18:10 PM
 #101

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.

1713569248
Hero Member
*
Offline Offline

Posts: 1713569248

View Profile Personal Message (Offline)

Ignore
1713569248
Reply with quote  #2

1713569248
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713569248
Hero Member
*
Offline Offline

Posts: 1713569248

View Profile Personal Message (Offline)

Ignore
1713569248
Reply with quote  #2

1713569248
Report to moderator
1713569248
Hero Member
*
Offline Offline

Posts: 1713569248

View Profile Personal Message (Offline)

Ignore
1713569248
Reply with quote  #2

1713569248
Report to moderator
1713569248
Hero Member
*
Offline Offline

Posts: 1713569248

View Profile Personal Message (Offline)

Ignore
1713569248
Reply with quote  #2

1713569248
Report to moderator
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 18, 2013, 12:24:54 PM
 #102

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.
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


View Profile WWW
December 19, 2013, 12:14:06 PM
 #103

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 Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 19, 2013, 12:19:42 PM
 #104

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 Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 20, 2013, 01:57:47 AM
 #105

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 Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 20, 2013, 02:05:43 AM
 #106

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 Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 20, 2013, 05:23:03 AM
 #107

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 Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 20, 2013, 05:31:35 AM
 #108

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 Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 20, 2013, 12:15:40 PM
 #109

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 Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 20, 2013, 12:20:45 PM
 #110

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
Full Member
***
Offline Offline

Activity: 143
Merit: 100


View Profile
December 25, 2013, 02:50:57 AM
Last edit: December 25, 2013, 07:06:14 AM by newcn
 #111

would you please add an entry of "numberOfPeers" to the output of getState request?

BTC:1NzzfeHCgN8fF6mSG1UeBFCVd2cxKbGyHk
NXT:13187911577562526278
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 25, 2013, 11:41:46 AM
 #112

would you please add an entry of "numberOfPeers" to the output of getState request?

Ok
OKNXT
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
December 25, 2013, 02:36:06 PM
 #113


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

wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
December 25, 2013, 04:15:27 PM
 #114

How do I get a list of transactions associated with a specific account? (specifically incoming money transactions)
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 25, 2013, 04:56:10 PM
 #115

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&timestamp=0
jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1132


View Profile WWW
December 26, 2013, 06:16:55 AM
 #116

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

http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1132


View Profile WWW
December 26, 2013, 06:18:12 AM
 #117

Also, how do you create an account via API?

James

http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 26, 2013, 06:37:19 AM
 #118

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 Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 26, 2013, 06:37:50 AM
 #119

Also, how do you create an account via API?

James

Account is created by the very 1st transaction.
datz
Sr. Member
****
Offline Offline

Activity: 295
Merit: 250


"to survive, we must live and fly"


View Profile
December 26, 2013, 10:15:03 AM
 #120

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?
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!