Pages:
Author

Topic: [Nxt] API of Nxt - page 18. (Read 37339 times)

legendary
Activity: 2142
Merit: 1010
Newbie
December 13, 2013, 09:17:54 AM
#56
More important: About the bogus txid received for sendMoney requests that are not included in blockchain; if we do getTransaction immediately after receiving the bogus txid, can we trust that the tx is not included in the blockchain at all (regardless of the deadline) if we get "Unknown transaction" as a reply?

NO.
Ok. So is there a simple way to see quickly what sendMoney requests have gone, or are going through? Do we need to wait until the deadline and then check all the txid in question for at least 1 confirmation?

After sendMoney do getTransaction.

1 confirmation is exactly the same as 0 confirmations.
hero member
Activity: 566
Merit: 500
December 13, 2013, 08:16:18 AM
#55
More important: About the bogus txid received for sendMoney requests that are not included in blockchain; if we do getTransaction immediately after receiving the bogus txid, can we trust that the tx is not included in the blockchain at all (regardless of the deadline) if we get "Unknown transaction" as a reply?

NO.
Ok. So is there a simple way to see quickly what sendMoney requests have gone, or are going through? Do we need to wait until the deadline and then check all the txid in question for at least 1 confirmation?
legendary
Activity: 2142
Merit: 1010
Newbie
December 13, 2013, 12:12:48 AM
#54
Despite having set the IP, for some reason the node is not showing up in active peers.

PM me with ur hallmark plz.
legendary
Activity: 2142
Merit: 1010
Newbie
December 13, 2013, 12:12:16 AM
#53
More important: About the bogus txid received for sendMoney requests that are not included in blockchain; if we do getTransaction immediately after receiving the bogus txid, can we trust that the tx is not included in the blockchain at all (regardless of the deadline) if we get "Unknown transaction" as a reply?

NO.
hero member
Activity: 566
Merit: 500
December 12, 2013, 05:08:05 PM
#52
Launch client from other node and check ur node in Active peers. It should have a non-zero weight set.
Right. Not in activepeers, had set up ip and hallmark. But just noticed http://localhost:7874/nxt?requestType=getMyInfo gives

Code:
{"host":"127.0.0.1","address":"127.0.0.1"}

How can I change the host to my static IP address? Thanks

Despite having set the IP, for some reason the node is not showing up in active peers.

More important: About the bogus txid received for sendMoney requests that are not included in blockchain; if we do getTransaction immediately after receiving the bogus txid, can we trust that the tx is not included in the blockchain at all (regardless of the deadline) if we get "Unknown transaction" as a reply?
legendary
Activity: 2142
Merit: 1010
Newbie
December 12, 2013, 03:45:13 PM
#51
Network fragmentation. Make sure u use recent version and ur node is marked, this greatly increases chance to push a transaction.
I think I have marked my node. How to verify this pls?

Launch client from other node and check ur node in Active peers. It should have a non-zero weight set.
hero member
Activity: 566
Merit: 500
December 12, 2013, 03:43:30 PM
#50
Network fragmentation. Make sure u use recent version and ur node is marked, this greatly increases chance to push a transaction.
I think I have marked my node. How to verify this pls?
legendary
Activity: 2142
Merit: 1010
Newbie
December 12, 2013, 02:42:41 PM
#49
Just like in Bitcoin if u send a transaction it's not guaranteed that it will be included into a block.
Ok, but NXT blocks are not nearly full. What would constitute the reasons for not including a payment in the numerous empty blocks that appear before the deadline?

Network fragmentation. Make sure u use recent version and ur node is marked, this greatly increases chance to push a transaction.
hero member
Activity: 566
Merit: 500
December 12, 2013, 02:39:39 PM
#48
Just like in Bitcoin if u send a transaction it's not guaranteed that it will be included into a block.
Ok, but NXT blocks are not nearly full. What would constitute the reasons for not including a payment in the numerous empty blocks that appear before the deadline?
legendary
Activity: 2142
Merit: 1010
Newbie
December 12, 2013, 10:02:51 AM
#47
Could u post an example of such incorrect recipient account number?
Will post one when it comes along again. I may have been mistaken, by coincidence some payments that had a space in the account number, or decimals in the amount are not going through even through the wrong format is parsed.

I suppose the system still gives a txid instantly even when the transaction does not eventually necessarily go through.? For instance we have a transfer of 10337 NXT with txid 7304505050048365739 returned by the API, yet this payment has not materialized in the blockchain explorer.

Just like in Bitcoin if u send a transaction it's not guaranteed that it will be included into a block.
hero member
Activity: 566
Merit: 500
December 12, 2013, 09:44:16 AM
#46
Could u post an example of such incorrect recipient account number?
Will post one when it comes along again. I may have been mistaken, by coincidence some payments that had a space in the account number, or decimals in the amount are not going through even through the wrong format is parsed.

I suppose the system still gives a txid instantly even when the transaction does not eventually necessarily go through.? For instance we have a transfer of 10337 NXT with txid 7304505050048365739 returned by the API, yet this payment has not materialized in the blockchain explorer.
legendary
Activity: 2142
Merit: 1010
Newbie
December 12, 2013, 08:14:05 AM
#45
We have many times received a txid for submitted sendMoney transactions that have an invalid receiver account number and eventually do not go thru. Is that right?

Could u post an example of such incorrect recipient account number?
hero member
Activity: 566
Merit: 500
December 12, 2013, 07:50:53 AM
#44
We have many times received a txid for submitted sendMoney transactions that have an invalid receiver account number and eventually do not go thru. Is that right?
legendary
Activity: 2142
Merit: 1010
Newbie
December 11, 2013, 05:44:29 AM
#43
getting
Code:
{"errorCode":6,"errorDescription":"Not enough funds"}
for small amounts of NXT

while

Code:
{"balance":112049900,"effectiveBalance":112049900,"unconfirmedBalance":-90021000}

What's with that?

Corrupted blockchain file.

Just restart and check again before redownloading the blockchain.
hero member
Activity: 566
Merit: 500
December 11, 2013, 05:43:32 AM
#42
getting
Code:
{"errorCode":6,"errorDescription":"Not enough funds"}
for small amounts of NXT

while

Code:
{"balance":112049900,"effectiveBalance":112049900,"unconfirmedBalance":-90021000}

What's with that?
legendary
Activity: 2142
Merit: 1010
Newbie
December 11, 2013, 04:44:53 AM
#41
API method request: a way to get a list of transactions pending inclusion in blocks (a la bitcoind getmemorypool).

http://localhost:7874/nxt?requestType=getUnconfirmedTransactionIds (in 0.3.18)
legendary
Activity: 2142
Merit: 1010
Newbie
December 10, 2013, 02:12:01 AM
#40
Is there some changes about the UNLOCK request in 0.3.16 client?
I use a python script to unlock constantly,
when I restart the client, I got an error:
{u'responses': [{u'message': u'java.lang.NullPointerException', u'response': u'showMessage'}]}

I have to clean the whole nxt directory and restart th client to make the unlock script work again
I was using 0.3.14 and no such problem.

I like 0.3.16 that the numberOfAccounts shows the online accounts, right?

java.lang.NullPointerException is caused by corrupted files.

numberOfAccounts is number of all accounts.
omo
full member
Activity: 147
Merit: 100
December 09, 2013, 10:14:06 PM
#39
Is there some changes about the UNLOCK request in 0.3.16 client?
I use a python script to unlock constantly,
when I restart the client, I got an error:
{u'responses': [{u'message': u'java.lang.NullPointerException', u'response': u'showMessage'}]}

I have to clean the whole nxt directory and restart th client to make the unlock script work again
I was using 0.3.14 and no such problem.

I like 0.3.16 that the numberOfAccounts shows the online accounts, right?
legendary
Activity: 2142
Merit: 1010
Newbie
December 09, 2013, 02:23:13 AM
#38
so, how does the network know if an account is online?
I understand that starting a nxt client and opening my account in a web browser(online) will have a chance to earn the transaction fees.
Am I confused about UNLOCK and ONLINE?
If I unlock my account and quit the browser(without locking my account), do I have the chance to get trasaction fees?
If I stop the nxt client further, do I have the chance to get transaction fees?

Network doesn't know if an account online. U unlock an account to let the soft know ur private key.
U can close browser without locking and u will be mining until u restart the client software.
omo
full member
Activity: 147
Merit: 100
December 08, 2013, 07:55:14 PM
#37
Is there a way to check if an account is unlocked?

No.


if I use wget to send the unlock request, how long will it stay unlocked?

Until u send "lock" request.

so, how does the network know if an account is online?
I understand that starting a nxt client and opening my account in a web browser(online) will have a chance to earn the transaction fees.
Am I confused about UNLOCK and ONLINE?
If I unlock my account and quit the browser(without locking my account), do I have the chance to get trasaction fees?
If I stop the nxt client further, do I have the chance to get transaction fees?
Pages:
Jump to: