When querying the Horizon API for operations related to an account, some are unexpectedly missing.
The documentation says that the endpoint I'm using represents all operations in valid transactions affecting a particular account. But I'm noticing that some operation objects are omitted from the paged responses. Particularly, when multiple operations are contained within the same transaction.
For example, using Stellar Expert, I see that this transaction has two operations:
90616517091172353
- Change Trust90616517091172354
- Manage Offer
When I query the API directly for them using the account operations endpoint and check each page of responses (by passing the cursor in the next link), neither of the operations I'm looking for are contained in the overall list. When I query the transaction endpoint directly, they are returned as I expect.
Trying with another transaction that only contains one operation (90614571470974977
) seems to return the operation in the response as expected.
I'm baffled by this, can anyone explain why the first two objects would not be included in the account endpoint response?