Bitcoin Forum
March 28, 2024, 06:01:50 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 37208 times)
mr_random
Legendary
*
Offline Offline

Activity: 1260
Merit: 1001



View Profile
December 15, 2013, 07:26:12 PM
 #81

Come from beyond can I have your opinion on my nxt problem please - https://bitcointalk.org/index.php?topic=345619.msg3980085#msg3980085

Am I worrying over nothing that the balance is 0?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 15, 2013, 07:27:50 PM
 #82

Come from beyond can I have your opinion on my nxt problem please - https://bitcointalk.org/index.php?topic=345619.msg3980085#msg3980085

Am I worrying over nothing that the balance is 0?

U have 461'548 NXT on that account right now.
mr_random
Legendary
*
Offline Offline

Activity: 1260
Merit: 1001



View Profile
December 15, 2013, 07:32:27 PM
 #83

Come from beyond can I have your opinion on my nxt problem please - https://bitcointalk.org/index.php?topic=345619.msg3980085#msg3980085

Am I worrying over nothing that the balance is 0?

U have 461'548 NXT on that account right now.

Thanks but how can I verify that myself for future transactions? If it's in the blockchain in that blockexplorer with eg 5 confirmations does that my account definitely has it? Cos the block explorer says balance 0 BUT shows 450k nxt going into the account.

 (i'm having client problems on my local machine currently so I can't rely on that today)

Thank you
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 15, 2013, 07:45:02 PM
 #84

Come from beyond can I have your opinion on my nxt problem please - https://bitcointalk.org/index.php?topic=345619.msg3980085#msg3980085

Am I worrying over nothing that the balance is 0?

U have 461'548 NXT on that account right now.

Thanks but how can I verify that myself for future transactions? If it's in the blockchain in that blockexplorer with eg 5 confirmations does that my account definitely has it? Cos the block explorer says balance 0 BUT shows 450k nxt going into the account.

 (i'm having client problems on my local machine currently so I can't rely on that today)

Thank you

U have to solve the client problems.
mr_random
Legendary
*
Offline Offline

Activity: 1260
Merit: 1001



View Profile
December 15, 2013, 07:48:31 PM
 #85

Come from beyond can I have your opinion on my nxt problem please - https://bitcointalk.org/index.php?topic=345619.msg3980085#msg3980085

Am I worrying over nothing that the balance is 0?

U have 461'548 NXT on that account right now.

Thanks but how can I verify that myself for future transactions? If it's in the blockchain in that blockexplorer with eg 5 confirmations does that my account definitely has it? Cos the block explorer says balance 0 BUT shows 450k nxt going into the account.

 (i'm having client problems on my local machine currently so I can't rely on that today)

Thank you

U have to solve the client problems.

Fair enough but does that mean the blockexplorer is not reliable? I always check my transactions in blockexplorers anyway to double check. Cos the block explorer says balance 0 for my account - that to me is worrying.

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 15, 2013, 07:58:29 PM
 #86

Don't derail this thead, plz.
GCInc.
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


View Profile WWW
December 16, 2013, 06:35:23 AM
 #87

Thanks but how can I verify that myself for future transactions? If it's in the blockchain in that blockexplorer with eg 5 confirmations does that my account definitely has it? Cos the block explorer says balance 0 BUT shows 450k nxt going into the account.
Block explorer uses the API, which has inconsistencies with the real / available balance for now.

ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 16, 2013, 12:41:48 PM
 #88

Version 0.2.16 got 3 new requests:

http://localhost:7876/?request=getState

What do the values of "state" mean? I assume 1 is ok. 2? Are there others?

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 16, 2013, 12:53:55 PM
 #89

Version 0.2.16 got 3 new requests:

http://localhost:7876/?request=getState

What do the values of "state" mean? I assume 1 is ok. 2? Are there others?

Where have u seen "1"?
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 16, 2013, 01:00:13 PM
 #90

Version 0.2.16 got 3 new requests:

http://localhost:7876/?request=getState

What do the values of "state" mean? I assume 1 is ok. 2? Are there others?

Where have u seen "1"?

From getPeer for node10.nxtbase.com:
Code:
{"application":"NRS",
"weight":1000,
"hallmark":SNIP,
"state":1,
"announcedAddress":"node10.nxtbase.com",
"downloadedVolume":631,
"version":"0.3.19e",
"uploadedVolume":17538}

with nxtbase, I can do easy stuff like this:
Code:
$ for i in {1..10}; do bin/peer node$i.nxtbase.com; done

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 16, 2013, 01:54:38 PM
 #91

From getPeer for node10.nxtbase.com:
Code:
{"application":"NRS",
"weight":1000,
"hallmark":SNIP,
"state":1,
"announcedAddress":"node10.nxtbase.com",
"downloadedVolume":631,
"version":"0.3.19e",
"uploadedVolume":17538}

with nxtbase, I can do easy stuff like this:
Code:
$ for i in {1..10}; do bin/peer node$i.nxtbase.com; done

1 == Connected

More info on http://localhost:7874/nxt?requestType=getConstants
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 16, 2013, 11:24:33 PM
 #92

Checking balances using 0.3.20, getBalance is returning 100x the actual balance. Is that correct?

Code:
$ bin/nxt balance 11243542237777034551
balance: 1400000
effectiveBalance: 0
unconfirmedBalance: 1400000

Is this to support decimal NXT using integers?

Thanks!


Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 17, 2013, 03:41:27 AM
 #93

Checking balances using 0.3.20, getBalance is returning 100x the actual balance. Is that correct?

Code:
$ bin/nxt balance 11243542237777034551
balance: 1400000
effectiveBalance: 0
unconfirmedBalance: 1400000

Is this to support decimal NXT using integers?

Thanks!



Yes, this is in cents.
getfun12345
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
December 17, 2013, 04:02:12 AM
 #94

Is there a request can get all the transactions relate to a specific account?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 17, 2013, 04:53:40 AM
 #95

Is there a request can get all the transactions relate to a specific account?

No. This should be done via blockchain scanning.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 17, 2013, 06:41:22 PM
 #96

Is there a way to get a list of all the accounts?

Thanks!

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 17, 2013, 07: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.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 17, 2013, 07: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?

joefox
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile WWW
December 17, 2013, 07: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.

I admin the Nxt Wiki at http://wiki.nxtcrypto.org/ Please support my work by donating to Nxt account #1234567740944417915
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 17, 2013, 07:35:43 PM
 #100

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.

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!