Author

Topic: NXT :: descendant of Bitcoin - Updated Information - page 823. (Read 2761627 times)

hero member
Activity: 490
Merit: 504
BTW - where is the marketing thread? I am sort of drowning in threads here ...
in my signature Smiley
https://bitcointalksearch.org/topic/m.4465984
I am working on 5 texts at the same time, so we can wait with clients
sr. member
Activity: 308
Merit: 250
In case of anyone doesn't watch marketing thread..

I am preparing the Press release about Nxt clients.. What do you think?
https://docs.google.com/file/d/0BwAGADgnQcrta3ZFUlBhQ0dtaEU/edit
(texts created by Damelon and edited by me and EvilDave)

What about my web client? Edit: Oh, I see it's mentioned on the first page :-) But not any more info.
hero member
Activity: 808
Merit: 1011
LET'S CATCH THE DOGE!

>>>>>>>>>>>>>>> PLEASE VOTE! <<<<<<<<<<<<<<<

Unregistered users are allowed up to 3 votes per hour, whilst registered users are allowed 6 votes per hour!

Please quote me, share on Twitter, Facebook, Reddit... thanks!

LET'S CATCH THE DOGE!
legendary
Activity: 1181
Merit: 1018
In case of anyone doesn't watch marketing thread..

I am preparing the Press release about Nxt clients.. What do you think?
https://docs.google.com/file/d/0BwAGADgnQcrta3ZFUlBhQ0dtaEU/edit
(texts created by Damelon and edited by me and EvilDave)

Hey salsacz - please let us include something about the nxtFreeRider! It is not in a very usable state yet, but that may change quite soon.

I think it is important to include it, because it is a valuable complement to the other clients: It is a powertool for developers and powerusers, with focus on the AE!

Wait a bit pls, I'll get you a screenshot of the api access window!!


BTW - where is the marketing thread? I am sort of drowning in threads here ...





legendary
Activity: 2142
Merit: 1010
Newbie
whenever it is necessary to press f5   Huh

Always, testnet is not stable.
hero member
Activity: 644
Merit: 500
It's non-synced GUI, that's all.
legendary
Activity: 1778
Merit: 1043
#Free market
CFb


When i finished to generate a block , the time stop and doesn't restart , why ?

F5

whenever it is necessary to press f5   Huh
legendary
Activity: 1181
Merit: 1018
In case of anyone doesn't watch marketing thread..

I am preparing the Press release about Nxt clients.. What do you think?
https://docs.google.com/file/d/0BwAGADgnQcrta3ZFUlBhQ0dtaEU/edit
(texts created by Damelon and edited by me and EvilDave)

Hey salsacz - please let us include something about the nxtFreeRider! It is not in a very usable state yet, but that may change quite soon.

I think it is important to include it, because it is a valuable complement to the other clients: It is a powertool for developers and powerusers, with focus on the AE!

Wait a bit pls, I'll get you a screenshot of the api access window!!


legendary
Activity: 1176
Merit: 1134
CfB,

Would it be possible to add the forging status to the getState API call?
Or maybe it is possible to figure out if a node is forging from the existing returned fields?

Give me an example of returned status.

getState {"lastBlock":"5011124499599066825","numberOfAliases":59821,"lastBlockchainFeeder":"46.19.137.116","numberOfBlocks":68742,"numberOfPeers":387,"totalMemory":930611200,"numberOfUnlockedAccounts":1,"freeMemory":343185648,"maxMemory":3817865216,"numberOfTransactions":127039,"numberOfUsers":1,"version":"0.7.5","numberOfOrders":0,"totalEffectiveBalance":99095153100,"time":7366623,"availableProcessors":8,"numberOfAssets":0,"cumulativeDifficulty":"2093846835399494","numberOfAccounts":24183}

I think it is just numberOfUnlockedAccounts > 0 -> isForging



U already have it. Right?
yes, got it
legendary
Activity: 2142
Merit: 1010
Newbie
CfB,

Would it be possible to add the forging status to the getState API call?
Or maybe it is possible to figure out if a node is forging from the existing returned fields?

Give me an example of returned status.

getState {"lastBlock":"5011124499599066825","numberOfAliases":59821,"lastBlockchainFeeder":"46.19.137.116","numberOfBlocks":68742,"numberOfPeers":387,"totalMemory":930611200,"numberOfUnlockedAccounts":1,"freeMemory":343185648,"maxMemory":3817865216,"numberOfTransactions":127039,"numberOfUsers":1,"version":"0.7.5","numberOfOrders":0,"totalEffectiveBalance":99095153100,"time":7366623,"availableProcessors":8,"numberOfAssets":0,"cumulativeDifficulty":"2093846835399494","numberOfAccounts":24183}

I think it is just numberOfUnlockedAccounts > 0 -> isForging



U already have it. Right?
legendary
Activity: 1176
Merit: 1134
CfB,

Would it be possible to add the forging status to the getState API call?
Or maybe it is possible to figure out if a node is forging from the existing returned fields?

Give me an example of returned status.

getState {"lastBlock":"5011124499599066825","numberOfAliases":59821,"lastBlockchainFeeder":"46.19.137.116","numberOfBlocks":68742,"numberOfPeers":387,"totalMemory":930611200,"numberOfUnlockedAccounts":1,"freeMemory":343185648,"maxMemory":3817865216,"numberOfTransactions":127039,"numberOfUsers":1,"version":"0.7.5","numberOfOrders":0,"totalEffectiveBalance":99095153100,"time":7366623,"availableProcessors":8,"numberOfAssets":0,"cumulativeDifficulty":"2093846835399494","numberOfAccounts":24183}

I think it is just numberOfUnlockedAccounts > 0 -> isForging

legendary
Activity: 2142
Merit: 1010
Newbie
CFb


When i finished to generate a block , the time stop and doesn't restart , why ?

F5
legendary
Activity: 1778
Merit: 1043
#Free market
CFb


When i finished to generate a block , the time stop and doesn't restart , why ?
legendary
Activity: 2142
Merit: 1010
Newbie
CfB,

Would it be possible to add the forging status to the getState API call?
Or maybe it is possible to figure out if a node is forging from the existing returned fields?

Give me an example of returned status.
legendary
Activity: 1176
Merit: 1134
CfB,

Would it be possible to add the forging status to the getState API call?
Or maybe it is possible to figure out if a node is forging from the existing returned fields?
hero member
Activity: 490
Merit: 504
In case of anyone doesn't watch marketing thread..

I am preparing the Press release about Nxt clients.. What do you think?
https://docs.google.com/file/d/0BwAGADgnQcrta3ZFUlBhQ0dtaEU/edit
(texts created by Damelon and edited by me and EvilDave)
legendary
Activity: 1778
Merit: 1043
#Free market

I just tried on the realNet with a 5nxt account and it works there:

unconfirmedBalance - 500
effectiveBalance - 500
balance - 500

publicKey - d95b5431be767e63d140232cbf94f2642db5257b430ccdbf1d2368dfdeb4592c



Can someone send me some testNXT to this acct on the tesnet again please?!?! redsn0w or CfB ? Thanks!



1738404304940813414


Sent 2929 TestNxt Wink
legendary
Activity: 1176
Merit: 1134
Here is simple C library for some of the NXT API calls. Just change the NXTACCT #define. Only a few API calls are here for now and none of them require account secret

At some point I will figure out how to create new project on github

James

Code:
#include 
#include
#include
#include
#include
#include
#include
#include
#include

#define NXTACCT 10154506025773104943LL
#define NXTSERVER "http://localhost:7874/nxt?requestType"

struct MemoryStruct { char *memory; size_t size; };

static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
{
    size_t realsize = size * nmemb;
    struct MemoryStruct *mem = (struct MemoryStruct *)data;
   
    mem->memory = realloc(mem->memory, mem->size + realsize + 1);
    if (mem->memory) {
        memcpy(&(mem->memory[mem->size]), ptr, realsize);
        mem->size += realsize;
        mem->memory[mem->size] = 0;
    }
    return realsize;
}

char *issue_curl(char *arg)
{
    CURL *curl_handle;
    CURLcode res;
    // from http://curl.haxx.se/libcurl/c/getinmemory.html
    struct MemoryStruct chunk;
    chunk.memory = malloc(1);  // will be grown as needed by the realloc above
    chunk.size = 0;    // no data at this point
    curl_global_init(CURL_GLOBAL_ALL); //init the curl session
    curl_handle = curl_easy_init();
    curl_easy_setopt(curl_handle, CURLOPT_URL, arg); // specify URL to get
    curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); // send all data to this function
    curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); // we pass our 'chunk' struct to the callback function
    curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0"); // some servers don't like requests that are made without a user-agent field, so we provide one
    res = curl_easy_perform(curl_handle);
    if ( res != CURLE_OK )
        fprintf(stderr, "curl_easy_perform() failed: %s\n",curl_easy_strerror(res));
    else
    {
        // printf("%lu bytes retrieved [%s]\n", (long)chunk.size,chunk.memory);
    }
    curl_easy_cleanup(curl_handle);
    return(chunk.memory);
}

char *issue_getAccountBlockIds(int64_t acctid,int timestamp)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getAccountBlockIds&account=%llu×tamp=%d",NXTSERVER,acctid,timestamp);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getAccountBlockIds.%llu %s\n",acctid,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_getAccountPublicKey(int64_t acctid)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getAccountPublicKey&account=%llu",NXTSERVER,acctid);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getAccountPublicKey.%llu %s\n",acctid,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_getAccountTransactionIds(int64_t acctid,int timestamp)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getAccountTransactionIds&account=%llu×tamp=%d",NXTSERVER,acctid,timestamp);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getAccountTransactionIds.%llu %s\n",acctid,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_getBalance(int64_t acctid)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getBalance&account=%llu",NXTSERVER,acctid);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getBalance.%llu %s\n",acctid,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_getGuaranteedBalance(int64_t acctid,int numconfs)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getGuaranteedBalance&account=%llu&numberOfConfirmations=%d",NXTSERVER,acctid,numconfs);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getAccountTransactionIds.%llu %s\n",acctid,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_getAliasId(char *alias)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getAliasId&alias=%s",NXTSERVER,alias);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getAliasId.%s = %s\n",alias,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_getAliasIds(int64_t acctid,int timestamp)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getAliasIds&account=%llu×tamp=%d",NXTSERVER,acctid,timestamp);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getAliasIds.%llu %s\n",acctid,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_getAliasURI(char *alias)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=getAliasURI&alias=%s",NXTSERVER,alias);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("getAliasURI.%s = %s\n",alias,jsonstr);
        free(jsonstr);
    }
    return(0);
}

char *issue_listAccountAliases(int64_t acctid)
{
    char cmd[512],*jsonstr;
    sprintf(cmd,"%s=listAccountAliases&account=%llu",NXTSERVER,acctid);
    jsonstr = issue_curl(cmd);
    if ( jsonstr != 0 )
    {
        printf("listAccountAliases.%llu %s\n",acctid,jsonstr);
        free(jsonstr);
    }
    return(0);
}

int test_NXTAPI(int64_t acctid)
{
    printf("test_NXTAPI(acctid: %llx %llu)\n",acctid,acctid);
    issue_getAccountBlockIds(acctid,0);
    issue_getAccountPublicKey(acctid);
    issue_getAccountTransactionIds(acctid,0);
    issue_getBalance(acctid);
    issue_getGuaranteedBalance(acctid,15);
    issue_getAliasId("NXTcommunityfund");
    //issue_getAliasIds(acctid,0);
    issue_getAliasURI("NXTcommunityfund");
    issue_listAccountAliases(acctid);
    return(0);
}

int main(int argc, const char * argv[])
{
    test_NXTAPI(NXTACCT);
    curl_global_cleanup();
}
hero member
Activity: 644
Merit: 500
well i tried forging solo but that got me absolutely nowhere lol
With what goal did u forge? With current state I suggest to every potential forger focus on protecting system, just do it, stake doesn't matter. Profits come later with some possibility, but unsafe (relative to context of cryptoworld, ofc) system can't succeed in long term - that's for sure.

but does forging not require massive download limits.. im not sure what the limit is on my wifi.. shared house and some one else does all that.. its 50meg fiber power but dont no if theres a limit.. dont want the bill sky high!

i was forging for no reason until i herd that purely to help secure the network.. but im not doin it for a huge wifi bill lol
And u'd not hurt yourself for anything. Calculate everything and decide.
full member
Activity: 238
Merit: 100
and if the community feels like its the way to go, i dont think we'd have any problem at all with migrating www/wiki/info/download/forums .nxtcrypto.org sites to be on .nxt.org at least I would hope that the people involved in those sites would not have a problem.

if thats they way the community wants to go.
Jump to: