Author

Topic: | Nxt | Blockchain Platform | Proof of Stake | Official - page 102. (Read 941430 times)

legendary
Activity: 1498
Merit: 1117
i have an idea for a coin. and i don't want to create everything from scratch, thats why i am thinking about the nxt monetary system.

i would like to have a coin with a fixed total number of coins.
mining should not be possible.
i would like to have 100% premine. but the coins should be locked. and the distribution should happen automatically to specific addresses.
the coins should be sent out of the premine to the addresses that take part in a special campaign. and as long as they take part they should receive the coins.

is something like this possible?
sr. member
Activity: 378
Merit: 250
the first error was solvable. but now.....

You do have NXT API server running on http://127.0.0.1:7876 ?
To check if you really do:
Code:
curl -X POST -H "Content-Type: application/json" http://127.0.0.1:7876/nxt?requestType=getBlockchainStatus
full member
Activity: 252
Merit: 100
Aliens are real!
Panic sell, massive dumping !!!!  Shocked
legendary
Activity: 1498
Merit: 1117
this reminds me of something. how can i count how many coins i received from the luck node project?
i did not find a way to filter transactions. how can i do this? Ordinary Payment i can filter. but not the account of the sender.

It is probably possible to do through the http://127.0.0.1:7876/test direct database query, but I don't speak SQL of H2 db.
Here is a little python3 script that can calculate earnings using NXT API. You need to install python3, on debian and raspbian it can be installed with: sudo apt-get install python3. Save the file, chmod 755 filename and run.

Oh, and change myAccount to your NXT account. Let me know if it worked for you.

Code:
#!/usr/bin/python3

import json

node = "http://127.0.0.1:7876/nxt"
myAccount = "NXT-1111-1111-1111-11111"

def sendQuery(Query):
  from urllib import parse, request
  params = parse.urlencode(Query)
  headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
  req = request.Request(node, params.encode('utf-8'))
  response = request.urlopen(req)
  return response.read()

output = sendQuery({'requestType': 'getBlockchainTransactions', 'account': myAccount});
txs = json.loads(output.decode('utf-8'))
total = 0;
a = 0;
for i in range(0,len(txs["transactions"])):
  if txs['transactions'][i]['senderRS'] == "NXT-8F28-EDVE-LPPX-HY4E7":
    total += int(txs['transactions'][i]['amountNQT'])
    a += 1

print("Found " + str(a) + " txs from Lucky node\nTotal received from Lucky node: " + str(total/100000000) + " NXT")

just this:

Quote
 File "nextpython3.py", line 9
      from urllib import parse, request
         ^
SyntaxError: invalid character in identifier

i will try to solve this and give you a feedback afterwards.

the first error was solvable. but now.....

Quote
Traceback (most recent call last):
  File "test.py", line 16, in
    output = sendQuery({'requestType': 'getBlockchainTransactions', 'account': myAccount});
  File "test.py", line 13, in sendQuery
    response = request.urlopen(req)
  File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 455, in open
    response = self._open(req, data)
  File "/usr/lib/python3.4/urllib/request.py", line 473, in _open
    '_open', req)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 1202, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.4/urllib/request.py", line 1177, in do_open
    r = h.getresponse()
  File "/usr/lib/python3.4/http/client.py", line 1172, in getresponse
    response.begin()
  File "/usr/lib/python3.4/http/client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.4/http/client.py", line 333, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: P
legendary
Activity: 1274
Merit: 1006

---- May profit share ----


A total of 517095.84601752 NXT will be distributed among 374 accounts which own a total of 18,467,708.78634 shares.

0.028 NXT per Janus owned.

Transaction 15350389444990902579




Yours in business,

- The Janusproject Team
sr. member
Activity: 378
Merit: 250
I found the following example of pump and dump, where is NXT if we compare to it





NXT has just crossed the left side of the red rectangle.
Disclaimer: I am biased and have a distorted view of NXT Wink
sr. member
Activity: 378
Merit: 250
this reminds me of something. how can i count how many coins i received from the luck node project?
i did not find a way to filter transactions. how can i do this? Ordinary Payment i can filter. but not the account of the sender.

It is probably possible to do through the http://127.0.0.1:7876/test direct database query, but I don't speak SQL of H2 db.
Here is a little python3 script that can calculate earnings using NXT API. You need to install python3, on debian and raspbian it can be installed with: sudo apt-get install python3. Save the file, chmod 755 filename and run.

Oh, and change myAccount to your NXT account. Let me know if it worked for you.

Code:
#!/usr/bin/python3

import json

node = "http://127.0.0.1:7876/nxt"
myAccount = "NXT-1111-1111-1111-11111"

def sendQuery(Query):
  from urllib import parse, request
  params = parse.urlencode(Query)
  headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
  req = request.Request(node, params.encode('utf-8'))
  response = request.urlopen(req)
  return response.read()

output = sendQuery({'requestType': 'getBlockchainTransactions', 'account': myAccount});
txs = json.loads(output.decode('utf-8'))
total = 0;
a = 0;
for i in range(0,len(txs["transactions"])):
  if txs['transactions'][i]['senderRS'] == "NXT-8F28-EDVE-LPPX-HY4E7":
    total += int(txs['transactions'][i]['amountNQT'])
    a += 1

print("Found " + str(a) + " txs from Lucky node\nTotal received from Lucky node: " + str(total/100000000) + " NXT")
legendary
Activity: 1498
Merit: 1117
this reminds me of something. how can i count how many coins i received from the luck node project?
i did not find a way to filter transactions. how can i do this? Ordinary Payment i can filter. but not the account of the sender.
sr. member
Activity: 378
Merit: 250
FYI, newcomers!
Did you know you can mine NXT (and buy Ardor with it on the Nxt Asset Exchange!) in the Lucky node project?
Computational and bandwidth requirements are very low - some users run it on a Raspberry Pi.
Run the node 24/7 or as often as you can while you work or play.
Join in with the over 100 nodes that are already in the project.
legendary
Activity: 2576
Merit: 1860
come one NXT, please go down a little, im unable to join the party if it keeps going up like this

There is no going down this time. Straight to 4-5k sat this time. Maybe try to bid in C-cex where buy order price is only 2000 instead of the current 2300.  Grin
hero member
Activity: 770
Merit: 500
sr. member
Activity: 638
Merit: 254
Supporter of DGB, XEM
come one NXT, please go down a little, im unable to join the party if it keeps going up like this
sr. member
Activity: 498
Merit: 250
Picture courtesy of cryptAnalyzer
What do you think of this chart? Is it realistic for the price to rise above last August high of 6000 satoshi as we are nearing the time of Ardor launch which NXT will be a big part of as a snapshot in the Ignis child chain?



I think Adror has already pumped ..
Now NXT will take 2017-18 to reach 5K ..
The tem more focused on Adror .. Better to invest on Adror


NXT and Adror are not for dump and pump. they are the future of cryptocurrency And the blockchain technology.


Haha ..
I think you have not seen above chart. What was the price of NXT ...Than why NXT dump to 600 from 5000 stat .. If there was development in NXT Huh .. No answer
Why they create ARDOR coin if there is NXT sufficient supply can't they develop NXT.
Accordingly they are more focused on ARDOR rather than NXT ..
newbie
Activity: 58
Merit: 0
i am HODLing muh precious
sr. member
Activity: 498
Merit: 250
Picture courtesy of cryptAnalyzer
What do you think of this chart? Is it realistic for the price to rise above last August high of 6000 satoshi as we are nearing the time of Ardor launch which NXT will be a big part of as a snapshot in the Ignis child chain?



I think Adror has already pumped ..
Now NXT will take 2017-18 to reach 5K ..
The tem more focused on Adror .. Better to invest on Adror
sr. member
Activity: 406
Merit: 250
I hold some nxt coin. I will hold it until it become 10k sats in price
full member
Activity: 196
Merit: 100
Picture courtesy of cryptAnalyzer
What do you think of this chart? Is it realistic for the price to rise above last August high of 6000 satoshi as we are nearing the time of Ardor launch which NXT will be a big part of as a snapshot in the Ignis child chain?


i'm pretty shure it is, but how long should it take? 2017 q3, maybe. but who nows, big money coming into crypto this year
sr. member
Activity: 378
Merit: 250
Picture courtesy of cryptAnalyzer
What do you think of this chart? Is it realistic for the price to rise above last August high of 6000 satoshi as we are nearing the time of Ardor launch which NXT will be a big part of as a snapshot in the Ignis child chain?

Jump to: