Bitcoin Forum
December 16, 2017, 07:46:15 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
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 36838 times)
newcn
Full Member
***
Offline Offline

Activity: 145


View Profile
January 07, 2014, 09:46:21 AM
 #201

about the sendMoney API, there's a parameter "referencedTransaction",
the explanation in wiki is"REFTRANSACTION is an option reference to a previous Nxt transaction ID"
can I set it to the previous transaction-ID of the sender account?
Is it ok to left the parameter empty(since it is an option)?

BTC:1NzzfeHCgN8fF6mSG1UeBFCVd2cxKbGyHk
NXT:13187911577562526278
1513453575
Hero Member
*
Offline Offline

Posts: 1513453575

View Profile Personal Message (Offline)

Ignore
1513453575
Reply with quote  #2

1513453575
Report to moderator
1513453575
Hero Member
*
Offline Offline

Posts: 1513453575

View Profile Personal Message (Offline)

Ignore
1513453575
Reply with quote  #2

1513453575
Report to moderator
1513453575
Hero Member
*
Offline Offline

Posts: 1513453575

View Profile Personal Message (Offline)

Ignore
1513453575
Reply with quote  #2

1513453575
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513453575
Hero Member
*
Offline Offline

Posts: 1513453575

View Profile Personal Message (Offline)

Ignore
1513453575
Reply with quote  #2

1513453575
Report to moderator
1513453575
Hero Member
*
Offline Offline

Posts: 1513453575

View Profile Personal Message (Offline)

Ignore
1513453575
Reply with quote  #2

1513453575
Report to moderator
1513453575
Hero Member
*
Offline Offline

Posts: 1513453575

View Profile Personal Message (Offline)

Ignore
1513453575
Reply with quote  #2

1513453575
Report to moderator
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 07, 2014, 09:50:15 AM
 #202

about the sendMoney API, there's a parameter "referencedTransaction",
the explanation in wiki is"REFTRANSACTION is an option reference to a previous Nxt transaction ID"
can I set it to the previous transaction-ID of the sender account?
Is it ok to left the parameter empty(since it is an option)?

U can leave it empty or set to any transaction id. Ur transaction won't be confirmed until the referenced transaction is.
newcn
Full Member
***
Offline Offline

Activity: 145


View Profile
January 07, 2014, 10:09:16 AM
 #203

about the sendMoney API, there's a parameter "referencedTransaction",
the explanation in wiki is"REFTRANSACTION is an option reference to a previous Nxt transaction ID"
can I set it to the previous transaction-ID of the sender account?
Is it ok to left the parameter empty(since it is an option)?

U can leave it empty or set to any transaction id. Ur transaction won't be confirmed until the referenced transaction is.

I see, so the referencedTransaction  makes some dependence for the transaction,
if the  referencedTransaction failed, the sendMoney transaction will be canceled, right?
it's a good feature!

BTC:1NzzfeHCgN8fF6mSG1UeBFCVd2cxKbGyHk
NXT:13187911577562526278
marcus03
Full Member
***
Offline Offline

Activity: 224


View Profile
January 07, 2014, 02:05:22 PM
 #204

Are unconfirmed transactions as returned by getUnconfirmedTransactionIds also returned in getAccountTransactionIds (before they have confirmations)?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 07, 2014, 02:07:31 PM
 #205

Are unconfirmed transactions as returned by getUnconfirmedTransactionIds also returned in getAccountTransactionIds (before they have confirmations)?

No.
marcus03
Full Member
***
Offline Offline

Activity: 224


View Profile
January 07, 2014, 02:13:43 PM
 #206

Are unconfirmed transactions as returned by getUnconfirmedTransactionIds also returned in getAccountTransactionIds (before they have confirmations)?

No.

Then this is a request... :-)

Right now, to also show unconfirmed transactions for an account in my client, I would need to constantly call getUnconfirmedTransactionIds, retrieve the transactions returned and check if the clients account number is in these transactions.
marcus03
Full Member
***
Offline Offline

Activity: 224


View Profile
January 07, 2014, 09:46:53 PM
 #207

Is the list of nodes returned by getPeers the complete lists of nodes in the network or are these just the nodes that my node knows about?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 07, 2014, 09:50:07 PM
 #208

Is the list of nodes returned by getPeers the complete lists of nodes in the network or are these just the nodes that my node knows about?

The latter.
abuelau
Hero Member
*****
Offline Offline

Activity: 686


www.coinschedule.com


View Profile
January 08, 2014, 03:53:37 PM
 #209

-Can multiple accounts be unlocked against the same NXT server at the same time?

Yes.


-Further, can I distribute the nxt software with my client to achieve a hassle-free end user experience?

Yes.

If multiple accounts are unlocked in the same server, will they all be forging?

Know what's happening in cryptoworld: www.coinschedule.com
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 08, 2014, 03:55:25 PM
 #210

If multiple accounts are unlocked in the same server, will they all be forging?

Yes
abuelau
Hero Member
*****
Offline Offline

Activity: 686


www.coinschedule.com


View Profile
January 08, 2014, 04:09:55 PM
 #211

Another question: is there a way to make a secure API send from a VPS?

If the API is being called from another VPS, I would need to send the secret in plan text between the 2 VPSs.

Know what's happening in cryptoworld: www.coinschedule.com
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 08, 2014, 04:15:45 PM
 #212

Another question: is there a way to make a secure API send from a VPS?

If the API is being called from another VPS, I would need to send the secret in plan text between the 2 VPSs.

Use HTTPS
bustingbuster
Jr. Member
*
Offline Offline

Activity: 39


View Profile
January 08, 2014, 05:26:41 PM
 #213

It would be more easier if the "getBalance" responses with the balance which atleast got 10 confirmations. Mind implementing this asap Smiley ?

+ If theres a command to move nxt instantly btw two accounts within a client like the bitcoins "move" rpc command. It would be very good.

The above two commands help very much to develop online marketplaces and wallets for nxt.

-Thanks-
marcus03
Full Member
***
Offline Offline

Activity: 224


View Profile
January 09, 2014, 07:59:31 AM
 #214

I've noticed I am not sure about some terms:

What does NRS actually stand for?
Is NRS only the bundled web client or the complete nxt software?
What is the server part called?
Does the bundled web client have a name?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 09, 2014, 08:28:49 AM
 #215

I've noticed I am not sure about some terms:

What does NRS actually stand for?
Is NRS only the bundled web client or the complete nxt software?
What is the server part called?
Does the bundled web client have a name?

NRS = Nxt Reference Software, it's the whitepaper written in Java.
It has 2 parts - server (as a Java servlet) and client (as HTML-files).
ferment
Full Member
***
Offline Offline

Activity: 168


IDEX - LIVE Real-time DEX


View Profile
January 09, 2014, 12:45:12 PM
 #216


NRS = Nxt Reference Software, it's the whitepaper written in Java.
It has 2 parts - server (as a Java servlet) and client (as HTML-files).

What do you call the parts of the Servlet that support the HTML like getInitialData, unLockAccount, etc?

I see 3 parts really: NRS, Client Servlet, and Client HTML.

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 09, 2014, 12:48:37 PM
 #217


NRS = Nxt Reference Software, it's the whitepaper written in Java.
It has 2 parts - server (as a Java servlet) and client (as HTML-files).

What do you call the parts of the Servlet that support the HTML like getInitialData, unLockAccount, etc?

I see 3 parts really: NRS, Client Servlet, and Client HTML.


Client HTTP requests.
ferment
Full Member
***
Offline Offline

Activity: 168


IDEX - LIVE Real-time DEX


View Profile
January 09, 2014, 12:55:53 PM
 #218


NRS = Nxt Reference Software, it's the whitepaper written in Java.
It has 2 parts - server (as a Java servlet) and client (as HTML-files).

What do you call the parts of the Servlet that support the HTML like getInitialData, unLockAccount, etc?

I see 3 parts really: NRS, Client Servlet, and Client HTML.


Client HTTP requests.

Is there a plan for NRS APIs that handle these things?

-remove a peer
-handle block generation
-generate tokens





Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1792

Newbie


View Profile
January 09, 2014, 12:59:45 PM
 #219

-remove a peer
-handle block generation
-generate tokens

We r planning to create other API. Old API will be called Legacy API and become obsolete. New API will be split to 2 parts - Low-level API and High-level API. If u r planning to write a client software u could start a thread to discuss what LL and HL API calls u need.
abuelau
Hero Member
*****
Offline Offline

Activity: 686


www.coinschedule.com


View Profile
January 09, 2014, 01:37:42 PM
 #220

-remove a peer
-handle block generation
-generate tokens

We r planning to create other API. Old API will be called Legacy API and become obsolete. New API will be split to 2 parts - Low-level API and High-level API. If u r planning to write a client software u could start a thread to discuss what LL and HL API calls u need.

What's the ETA for these new APIs?

Know what's happening in cryptoworld: www.coinschedule.com
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!