0

How can i get all transactions on account with embedded 'amount' value? Via REST API.

For example: https://horizon.stellar.org/accounts/GCR7DQSRAFZHOC7QHPRNI7G55ZHF2EC2QA7V44XSX26WOJEV2Q7S42EW/transactions?order=desc

I think 'amount' should be there. But i don't see it.

I can see it in example https://www.stellar.org/developers/horizon/reference/endpoints/transactions-for-account.html

But there is no amount in actually working API.

0

1 Answer 1

1

You are looking for the /payments endpoint:

https://horizon.stellar.org/accounts/GCR7DQSRAFZHOC7QHPRNI7G55ZHF2EC2QA7V44XSX26WOJEV2Q7S42EW/payments?order=desc

4
  • Aah.. well, looks like i missed this one somehow.. I see amount, yes. Also I see "from" and "to". So it is possible to determine pay-ins and pay-outs. But )) no "memo". Also. I needed comination of "amount" and "memo" in one. In one request.
    – Stanislav
    Sep 12, 2020 at 13:52
  • I managed to do it combining two requests. horizon.stellar.org/accounts/… and horizon.stellar.org/accounts/… I don't think it is nice. But it is working :)
    – Stanislav
    Sep 12, 2020 at 13:53
  • It would be better to have a request with "amount" and "memo" in one place. Also to reduce server load.
    – Stanislav
    Sep 12, 2020 at 13:56
  • There is also "transaction_hash" in your answer. So it is possible to combine this request with "transaction"-request.. to have "amount" there. I would like to find out the solution with one request. But if there is no one. I think your answer is right. ( The second one is "effects". ) Thanks anyway. I think it would be useful.
    – Stanislav
    Sep 12, 2020 at 14:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.