I am currently trying to get the memo
and amount
of a transaction, but am confused over the differences between a transaction
, an operation
, and a payment
.
From my understanding, a transaction
contains multiple operations
, one of which is a payment
.
However, when querying with horizon.stellar.org
, which of the following should I be using to get both memo
and amount
?
server.transactions().forAccount(accountId).call()...
server.operations().forAccount(accountId).call()...
server.payments().forAccount(accountId).call()...