Bitcoin Forum
May 04, 2024, 07:03:39 AM *
News: Latest Bitcoin Core release: 27.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 37218 times)
newcn
Full Member
***
Offline Offline

Activity: 143
Merit: 100


View Profile
December 29, 2013, 02:17:07 AM
 #141

hello,
   what does 'numbOfPeers' from getState mean?
   does it mean the total number of nodes that run NRS client?

BTC:1NzzfeHCgN8fF6mSG1UeBFCVd2cxKbGyHk
NXT:13187911577562526278
1714806219
Hero Member
*
Offline Offline

Posts: 1714806219

View Profile Personal Message (Offline)

Ignore
1714806219
Reply with quote  #2

1714806219
Report to moderator
1714806219
Hero Member
*
Offline Offline

Posts: 1714806219

View Profile Personal Message (Offline)

Ignore
1714806219
Reply with quote  #2

1714806219
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
NxtChoice
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
December 30, 2013, 05:08:05 AM
 #142

hello,
   what does 'numbOfPeers' from getState mean?
   does it mean the total number of nodes that run NRS client?

No, I think it's the peers who connect to you or whom you connect to.

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 30, 2013, 05:38:26 AM
 #143

hello,
   what does 'numbOfPeers' from getState mean?
   does it mean the total number of nodes that run NRS client?

No, I think it's the peers who connect to you or whom you connect to.



It includes known and blacklisted peers also.
omo
Full Member
***
Offline Offline

Activity: 147
Merit: 100


View Profile
December 30, 2013, 08:48:28 AM
 #144

hello,
   what does 'numbOfPeers' from getState mean?
   does it mean the total number of nodes that run NRS client?

No, I think it's the peers who connect to you or whom you connect to.



It includes known and blacklisted peers also.

so,numbOfPeers should <= number of all nodes that run NRS client, If all nodes communicate well (they know each other) ,  numbOfPeers == number of all nodes, is that right?

BTC:1Fu4TNpVPToxxhSXBNSvE9fz6X3dbYgB8q
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 30, 2013, 08:52:50 AM
 #145

so,numbOfPeers should <= number of all nodes that run NRS client, If all nodes communicate well (they know each other) ,  numbOfPeers == number of all nodes, is that right?

No.
To get more info on a particular peer use http://localhost:7874/nxt?requestType=getPeer&peer=46.20.69.133
Peer state descriptions can be obtained via http://localhost:7874/nxt?requestType=getConstants
^[GS]^
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 01, 2014, 05:18:48 AM
 #146

I think it has changed the protocol to 0.4.8, no longer works for almost any function??
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 01, 2014, 05:48:03 AM
 #147

I think it has changed the protocol to 0.4.8, no longer works for almost any function??

No. What the issue do u have?
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 01, 2014, 08:39:58 AM
 #148

-Can multiple accounts be unlocked against the same NXT server at the same time?

-Further, can I distribute the nxt software with my client to achieve a hassle-free end user experience?

Thanks for your help!
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 01, 2014, 08:45:40 AM
 #149

-Can multiple accounts be unlocked against the same NXT server at the same time?

Yes.


-Further, can I distribute the nxt software with my client to achieve a hassle-free end user experience?

Yes.
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 01, 2014, 09:55:31 AM
 #150

-Can multiple accounts be unlocked against the same NXT server at the same time?

Yes.


-Further, can I distribute the nxt software with my client to achieve a hassle-free end user experience?

Yes.

Thanks!

What is the meaning of numberOfUsers in the result of getState?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 01, 2014, 09:59:14 AM
 #151

What is the meaning of numberOfUsers in the result of getState?

This is number of attempts to open NRS web interface. Each page refresh creates a new user, even if they have the same account.
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 01, 2014, 11:35:01 AM
 #152

From getConstants:

"peerStates":[{"description":"Non-connected","value":0},{"description":"Connected","value":1},{"description":"Disconnected","value":2}]

What is the difference between Non-connected and Disconnected?

Non-connected: Never was connected to this node.
Disconnected: Was connected, but now disconnected.

Like this?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 01, 2014, 11:37:54 AM
 #153

From getConstants:

"peerStates":[{"description":"Non-connected","value":0},{"description":"Connected","value":1},{"description":"Disconnected","value":2}]

What is the difference between Non-connected and Disconnected?

Non-connected: Never was connected to this node.
Disconnected: Was connected, but now disconnected.

Like this?

Yes.
GCInc.
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


View Profile WWW
January 01, 2014, 06:58:19 PM
 #154

Why is the sendMoney API so slow on 0.4.8 (and most other versions)? It takes over 5 seconds per payment to get the txid, still a high percentage of these is not carried through. 34 peers shown.

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 01, 2014, 07:03:33 PM
 #155

Why is the sendMoney API so slow on 0.4.8 (and most other versions)? It takes over 5 seconds per payment to get the txid, still a high percentage of these is not carried through. 34 peers shown.

Speed depends on number of peers it sends data to. Reduce maxNumberOfConnectedPublicPeers, increase pushThreshold, reduce connectTimeout.
kjannis
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
January 01, 2014, 08:54:00 PM
 #156

Hi,

whenever I try to do the following:

GET http://localhost:7874/nxt?requestType=getAccountTransactionIds&account=18024643391205620992&timestamp=0&3.19606338E-8

I get an unknown account response.
Happens in 0.4.8, in 0.4.7e I got an incorrect timestamp error, and before everything was fine.

What am I doing wrong?
Do I need to do an unlockaccount request before this one?

Thanks.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 01, 2014, 09:19:46 PM
 #157

Hi,

whenever I try to do the following:

GET http://localhost:7874/nxt?requestType=getAccountTransactionIds&account=18024643391205620992&timestamp=0&3.19606338E-8

I get an unknown account response.
Happens in 0.4.8, in 0.4.7e I got an incorrect timestamp error, and before everything was fine.

What am I doing wrong?
Do I need to do an unlockaccount request before this one?

Thanks.

U don't need to unlock the account.
I see
Code:
{"transactionIds":["15085253524419928473","8112176655741647048","9791683000981722521","17260745815379391255","13480409775214063395","7176052155437098924","8756057990016875314"]}
Send me ur blocks.nxt and transactions.nxt files plz.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
January 01, 2014, 11:27:54 PM
 #158

Does the response of get_alias_ids include the ids of aliases that have been updated since the timestamp?

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 02, 2014, 07:13:21 AM
 #159

Does the response of get_alias_ids include the ids of aliases that have been updated since the timestamp?

Yes.
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 02, 2014, 10:49:14 AM
 #160


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)


Can we get a "getCommands" command that returns the list of commands?
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!