Greetings Stellar StackExchange community,
I would kindly require your assistance as I am having hard time figuring out how to get the incoming transaction amount value, and what would be the most appropriate way to do it for my personal account.
Currently I have function which return transactions, but this ones include memo, fees, hash, xdr_envelope and so on, however not amount. What I need for my "app" is TX HASH, MEMO, VALUE and PAGING token as I am storing them into database.
def get_transactions(self):
data = server.transactions().for_account(account_id=self.public_key).include_failed(False).call()
for tx in data['_embedded']['records']:
te = TransactionEnvelope.from_xdr(tx['envelope_xdr'], Network.TESTNET_NETWORK_PASSPHRASE)
pprint(te)
While pretty printing each TransactionEnvelope, I am getting back object but not values.
I have been as well looking at the post How to decode XDR of the result_xdr however due to the new package for python I "hit the wall".
I tried as well use Payments For Account while amount is returned however there is no Memo.
data = server.payments().for_account(account_id=self.public_key).call()
pprint(data['_embedded']['records'])
Could you please help me resolve the issues I am having?
thank you for your time, answer and assistance in advance, and hope to get response soon.
best regards
Animus