Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services/horizon: account operations endpoint does not include all operations affecting the account #5538

Open
leighmcculloch opened this issue Nov 24, 2024 · 1 comment
Labels

Comments

@leighmcculloch
Copy link
Member

leighmcculloch commented Nov 24, 2024

What version are you using?

22.0.1-dd8a9b473a303cfcdd383d1db45dace93ea0861c

What did you do?

Go to:

https://horizon.stellar.org/accounts/GDZAGXA74ZE2B54TYUXNUAOY3MTDL3ECP4EPYTRO3TKKKBRZF265UERA/operations?order=desc

Go to:

https://horizon.stellar.org/accounts/GDZAGXA74ZE2B54TYUXNUAOY3MTDL3ECP4EPYTRO3TKKKBRZF265UERA/effects?order=desc

What did you expect to see?

I expected to see present an operation and effects relating to:

https://horizon.stellar.org/operations/234143333304045569

The operation affects the GDZA account because a transfer is made to the account during the operation.

I expected this because the account operations endpoint shows payments from other source accounts that affect the GDZA account.

What did you see instead?

The operation is seen in the /effects endpoint, but not the /operations endpoint.


Related conversion: https://stellarfoundation.slack.com/archives/C03347FNAHK/p1732298224113449

cc @tomerweller

@aristidesstaffieri
Copy link

The specific query that spawned this conversation is used in Freighter here and is

const operationsData = await server
      .operations()
      .forAccount(pubKey)
      .order("desc")
      .join("transactions")
      .limit(TRANSACTIONS_LIMIT)
      .call();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants