elective-stereophonic
elective-stereophonic
Proper way to handle phased deposits singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: Proper way to handle phased deposits  (Read 814 times)

MrData

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 7
    • View Profile
Proper way to handle phased deposits
« on: June 15, 2016, 03:55:39 am »

Hello all,

I was wondering how to handle phased deposits/incoming payments properly as returned by getBlockchainTransactions() apart from the normal checking account addresses, type, and amount? And by properly really what I mean is that a) funds were received into my account, b) they aren't going to go away for any reason (timeouts, votes, further signing needed, etc., etc.).
Logged

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: Proper way to handle phased deposits
« Reply #1 on: June 15, 2016, 06:23:10 am »

Hello all,

I was wondering how to handle phased deposits/incoming payments properly as returned by getBlockchainTransactions() apart from the normal checking account addresses, type, and amount? And by properly really what I mean is that a) funds were received into my account, b) they aren't going to go away for any reason (timeouts, votes, further signing needed, etc., etc.).

You need to invoke the getBlockchainTransactions API with executedOnly=true
Here is the full explanation from the changelog https://bitbucket.org/JeanLucPicard/nxt/downloads/changelog-full.txt:
"getBlockchainTransactions now takes an optional executedOnly boolean
parameter, default false. If true, phased transactions that were not executed
are not included in the result."
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

MrData

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: Proper way to handle phased deposits
« Reply #2 on: June 15, 2016, 06:50:34 am »

Excellent, thanks.
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly