Pages:
Author

Topic: [Nxt] API of Nxt - page 16. (Read 37320 times)

full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 17, 2013, 01:41:22 PM
#96
Is there a way to get a list of all the accounts?

Thanks!
legendary
Activity: 2142
Merit: 1010
Newbie
December 16, 2013, 11:53:40 PM
#95
Is there a request can get all the transactions relate to a specific account?

No. This should be done via blockchain scanning.
newbie
Activity: 42
Merit: 0
December 16, 2013, 11:02:12 PM
#94
Is there a request can get all the transactions relate to a specific account?
legendary
Activity: 2142
Merit: 1010
Newbie
December 16, 2013, 10:41:27 PM
#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.
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 16, 2013, 06: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!

legendary
Activity: 2142
Merit: 1010
Newbie
December 16, 2013, 08:54:38 AM
#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
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 16, 2013, 08:00:13 AM
#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
legendary
Activity: 2142
Merit: 1010
Newbie
December 16, 2013, 07:53:55 AM
#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"?
full member
Activity: 168
Merit: 100
IDEX - LIVE Real-time DEX
December 16, 2013, 07:41:48 AM
#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?
hero member
Activity: 566
Merit: 500
December 16, 2013, 01: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.
legendary
Activity: 2142
Merit: 1010
Newbie
December 15, 2013, 02:58:29 PM
#86
Don't derail this thead, plz.
legendary
Activity: 1344
Merit: 1001
December 15, 2013, 02:48:31 PM
#85
Come from beyond can I have your opinion on my nxt problem please - https://bitcointalksearch.org/topic/m.3980085

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.

legendary
Activity: 2142
Merit: 1010
Newbie
December 15, 2013, 02:45:02 PM
#84
Come from beyond can I have your opinion on my nxt problem please - https://bitcointalksearch.org/topic/m.3980085

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.
legendary
Activity: 1344
Merit: 1001
December 15, 2013, 02:32:27 PM
#83
Come from beyond can I have your opinion on my nxt problem please - https://bitcointalksearch.org/topic/m.3980085

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
legendary
Activity: 2142
Merit: 1010
Newbie
December 15, 2013, 02:27:50 PM
#82
Come from beyond can I have your opinion on my nxt problem please - https://bitcointalksearch.org/topic/m.3980085

Am I worrying over nothing that the balance is 0?

U have 461'548 NXT on that account right now.
legendary
Activity: 1344
Merit: 1001
December 15, 2013, 02:26:12 PM
#81
Come from beyond can I have your opinion on my nxt problem please - https://bitcointalksearch.org/topic/m.3980085

Am I worrying over nothing that the balance is 0?
legendary
Activity: 2142
Merit: 1010
Newbie
December 15, 2013, 02:18:04 PM
#80
The problem we face with tx's in limbo, is that getTransactionBytes does not recognize the txid we just a minute earlier got from sendMoney.

Code:
{"errorCode":5,"errorDescription":"Unknown transaction"}

Thus we can not rebroadcast. It remains in limbo god knows how long?

Another problem that is not consistent with what we have talked here, is that we can not spend more than unconfirmedbalance. You said that "balance" is the actual balance, however we can not use more than 1M NXT from the following:

Code:
{"balance":902320000,"effectiveBalance":902320000,"unconfirmedBalance":108396200}

U r right. Tomorrow I'll release 0.3.20 with fixed issues.

Edit: Right now u can relaunch the client to "reset" unconfirmed balance.
hero member
Activity: 566
Merit: 500
December 15, 2013, 02:16:44 PM
#79
The problem we face with tx's in limbo, is that getTransactionBytes does not recognize the txid we just a minute earlier got from sendMoney.

Code:
{"errorCode":5,"errorDescription":"Unknown transaction"}

Thus we can not rebroadcast. It remains in limbo god knows how long?

Another problem that is not consistent with what we have talked here, is that we can not spend more than unconfirmedbalance. You said that "balance" is the actual balance, however we can not use more than 1M NXT from the following:

Code:
{"balance":902320000,"effectiveBalance":902320000,"unconfirmedBalance":108396200}
legendary
Activity: 2142
Merit: 1010
Newbie
December 15, 2013, 09:20:42 AM
#78
Sorry, missed that one.

What's the response supposed to be, instant acknowledgement like sendMoney?

Yes, with the transaction id.
hero member
Activity: 566
Merit: 500
December 15, 2013, 09:06:46 AM
#77
Sorry, missed that one.

What's the response supposed to be, instant acknowledgement like sendMoney?
Pages:
Jump to: