Bitcoin Forum
April 24, 2024, 11:52:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
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 37217 times)
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
January 09, 2014, 02:02:27 PM
 #221


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.

https://bitcointalk.org/index.php?topic=406839

1713959557
Hero Member
*
Offline Offline

Posts: 1713959557

View Profile Personal Message (Offline)

Ignore
1713959557
Reply with quote  #2

1713959557
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 09, 2014, 02:03:43 PM
 #222

What's the ETA for these new APIs?

Depends on how fast client devs decide what they need and how this should look.
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 09, 2014, 03:19:51 PM
 #223

What would be a good approach to cleanup orphan blocks and their transactions on the client side?

Right now, I would make a list of all blocks, then walk down the chain from the highest block and remove these blocks in the chain from my list.
The remaining blocks in the list would be the orphan blocks and would need to be deleted.

Is there a better approach? Like is there or could there been an API call that would return all block ids that NRS knows are orphans?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 09, 2014, 03:22:20 PM
 #224

What would be a good approach to cleanup orphan blocks and their transactions on the client side?

Right now, I would make a list of all blocks, then walk down the chain from the highest block and remove these blocks in the chain from my list.
The remaining blocks in the list would be the orphan blocks and would need to be deleted.

Is there a better approach? Like is there or could there been an API call that would return all block ids that NRS knows are orphans?

Post this idea in that new thread plz.
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 10, 2014, 08:55:33 AM
 #225

I'm posting this here again, since I would really like to have this implemented in the v1 API in one of the next NRS versions and not wait until v2 of the API.

What takes most of the time is when my client updates from NRS is getting the updated confirmation counts for transactions with less than 720 confirmations, because there are lots of back and forth calls since you have to call getTransaction again and again over a lot of transactions.

Would be nice to have some kind of batch mode, so e.g. send me all confirmations counts for all transactions that are in block x. Or block x to y. Or block x,y,z, etc. with just one request.

marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 11, 2014, 09:43:36 AM
 #226

Can the number of transaction confirmations only change when there is a new block? Or can it change "between blocks"?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 11, 2014, 09:46:02 AM
 #227

Can the number of transaction confirmations only change when there is a new block? Or can it change "between blocks"?

Only new blocks or chain reorgs can change the number.
hiksush2
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
January 12, 2014, 04:08:41 AM
 #228

Is there a way to get a list of all the accounts?

Thanks!

Yes, this can be done via blockchain scanning. Smiley

Let me know if u need a special API call for that.

I'd definitely like an API call that would return all accounts.  For blockchain scanning, what is the process to get all accounts?  A quick look at blocks.nxt (12MB) shows only ~300 unique generatorPublicKey's, and transactions.nxt (also 12MB) has about ~3500 unique accounts.  The blockchain explorer says "Accounts: 13919" and lists lots of new accounts being added though.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
January 12, 2014, 12:51:44 PM
 #229

Is there a way to get a list of all the accounts?

Thanks!

Yes, this can be done via blockchain scanning. Smiley

Let me know if u need a special API call for that.

I'd definitely like an API call that would return all accounts.  For blockchain scanning, what is the process to get all accounts?  A quick look at blocks.nxt (12MB) shows only ~300 unique generatorPublicKey's, and transactions.nxt (also 12MB) has about ~3500 unique accounts.  The blockchain explorer says "Accounts: 13919" and lists lots of new accounts being added though.

Get a unique list of the recipients of all transactions of all blocks.

abuelau
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500


www.coinschedule.com


View Profile
January 12, 2014, 01:30:01 PM
 #230

Given a transaction, what is the best way to know if that transaction is related to an ALIAS or AM?

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

Activity: 2142
Merit: 1009

Newbie


View Profile
January 12, 2014, 01:30:57 PM
 #231

Given a transaction, what is the best way to know if that transaction is related to an ALIAS or AM?

"subtype"
abuelau
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500


www.coinschedule.com


View Profile
January 12, 2014, 02:14:01 PM
 #232

Given a transaction, what is the best way to know if that transaction is related to an ALIAS or AM?

"subtype"

Is the AM subtype = 2?

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

Activity: 2142
Merit: 1009

Newbie


View Profile
January 12, 2014, 02:33:22 PM
 #233

Given a transaction, what is the best way to know if that transaction is related to an ALIAS or AM?

"subtype"

Is the AM subtype = 2?

= 0

PS: type = 1
abuelau
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500


www.coinschedule.com


View Profile
January 12, 2014, 03:33:46 PM
 #234

Given a transaction, what is the best way to know if that transaction is related to an ALIAS or AM?

"subtype"

Is the AM subtype = 2?

= 0

PS: type = 1

So is this right:

Regular Tx: type=type=0, subtype=0
Alias Tx: type= type=1, subtype=1
AM Tx: type=1, subtype=0


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

Activity: 2142
Merit: 1009

Newbie


View Profile
January 12, 2014, 03:35:52 PM
 #235

Given a transaction, what is the best way to know if that transaction is related to an ALIAS or AM?

"subtype"

Is the AM subtype = 2?

= 0

PS: type = 1

So is this right:

Regular Tx: type=type=0, subtype=0
Alias Tx: type= type=1, subtype=1
AM Tx: type=1, subtype=0



Yes, http://localhost:7874/nxt?requestType=getConstants gives description.
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 13, 2014, 06:11:42 PM
 #236

I'm having  some trouble with the secretPhrase parameter. How should parameters be encoded?

I'm using UTF-8 and URL encoding so, e.g. the secret öäü (german umlaut characters) would be öäü in UTF-8 and that would be urlencoded to %C3%83%C2%B6%C3%83%C2%A4%C3%83%C2%BC resulting in:

http://..../nxt?requestType=sendMoney&secretPhrase=%C3%83%C2%B6%C3%83%C2%A4%C3%83%C2%BC&recipient=...

Anything wrong with that?
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
January 13, 2014, 07:04:40 PM
 #237

I'm having  some trouble with the secretPhrase parameter. How should parameters be encoded?

I'm using UTF-8 and URL encoding so, e.g. the secret öäü (german umlaut characters) would be öäü in UTF-8 and that would be urlencoded to %C3%83%C2%B6%C3%83%C2%A4%C3%83%C2%BC resulting in:

http://..../nxt?requestType=sendMoney&secretPhrase=%C3%83%C2%B6%C3%83%C2%A4%C3%83%C2%BC&recipient=...

Anything wrong with that?

Got it to work. Had a problem with in my URL encoder.
l8orre
Legendary
*
Offline Offline

Activity: 1181
Merit: 1018


View Profile
January 13, 2014, 08:11:47 PM
 #238

hoi marcus03
- as you mention urlencoder - I am using python 'requests' - works nice. What are you using?

Cheers
GCInc.
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


View Profile WWW
January 13, 2014, 11:50:07 PM
 #239

We have made a bunch of transactions that have received the transactionbytes. Deadline 7200 minutes, not even near of expiring, yet somehow these transactions are not pushed through even when others are. They receive the same transaction id and transactionbytes every time for days but do not go through. We are wary of resending them before deadline instead of rebroadcasting for the fear of double spending. Any ideas?

rriky92
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile WWW
January 14, 2014, 01:25:24 AM
 #240

what are the Arbitrary Message API?
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!