elective-stereophonic
elective-stereophonic
WARNING - The getAccountTransactionIds API is deprecated and will be removed in
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: WARNING - The getAccountTransactionIds API is deprecated and will be removed in  (Read 1849 times)

LocoMB

  • Hero Member
  • *****
  • Karma: +101/-37
  • Offline Offline
  • Posts: 751
    • View Profile

Hi Devs!

I just
noticed in the API this announcement:

requestProcessingTime - 36
WARNING - The getAccountTransactionIds API is deprecated and will be removed in 1.6

I haven't been following too closely for some time, so I have to ask: When will that happen, and how can I get the TXs of an account instead?

Thanks!
Logged
TOX
90E54E5B5213290EE616D425CADC473038CFABFA53C913271AA8559D1937DC4AF3A354A9E4E5

mystcoin

  • Full Member
  • ***
  • Karma: +50/-0
  • Offline Offline
  • Posts: 188
    • View Profile

Hi Devs!

I just
noticed in the API this announcement:

requestProcessingTime - 36
WARNING - The getAccountTransactionIds API is deprecated and will be removed in 1.6

I haven't been following too closely for some time, so I have to ask: When will that happen, and how can I get the TXs of an account instead?

Thanks!

From the Change Log Version 1.5.7e:

The getAccountTransactions and getAccountTransactionIds APIs have been restricted to always return only the non-phased transactions. Those APIs have also been deprecated and will be removed in 1.6. The getBlockchainTransactions API should be used instead, which has the same behavior but returns both phased and non-phased transactions (by default, unless either phasedOnly or nonPhasedOnly parameters is specified). Do not simply replace getAccountTransactions with getBlockchainTransactions in your client code without an understanding of how phased transactions work and without being prepared to handle them correctly.
Logged

kunibopl

  • Jr. Member
  • **
  • Karma: +9/-5
  • Offline Offline
  • Posts: 91
    • View Profile

I replaced getAccountTransactions with getBlockchainTransactions and get no output.

what is wrong with that?
Code: [Select]
$url = "http://nxtpeers.com/api/index.php";
$getServer = file_get_contents($url);
$server_json = json_decode($getServer);
$server = htmlspecialchars($server_json->{'ip'});
$all_Tx_raw = file_get_contents('http://'.$server.':7876/nxt?requestType=getBlockchainTransactions&account='.$account);   // getBlockchainTransactions

the last line doesn't work
$account is a Nxt-address

when I try http://nxtnode.duckdns.org:7876/nxt?requestType=getBlockchainTransactions&account=
I get: �P

!?!?!?
« Last Edit: August 21, 2016, 11:21:38 pm by kunibopl »
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly